/* ============================================================
   EL AUTOSABOTAJE · auth.css — registro e inicio de sesion
   Paleta: negro profundo + carbon + oro metalico
   ============================================================ */

:root {
  --bg: #0B0B0B;
  --bg2: #101010;
  --panel: #141414;
  --panel2: #191919;
  --line: rgba(212, 175, 55, 0.16);
  --line-soft: rgba(237, 237, 232, 0.08);
  --gold: #D4AF37;
  --gold2: #F0D97C;
  --ink: #EDEDE8;
  --mut: #9A958C;
  --danger: #C96F5A;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(212, 175, 55, 0.07), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(212, 175, 55, 0.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-name {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 700;
}

.topbar-link {
  color: var(--mut);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.topbar-link:hover { color: var(--gold); }

.auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 20px 72px;
}

.auth-card {
  width: min(440px, 100%);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 44px 40px 40px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(212,175,55,0.5), transparent 30%, transparent 70%, rgba(212,175,55,0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-kicker {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 18px;
}

.auth-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 34px);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 10px;
}

.auth-title em {
  font-style: italic;
  color: var(--gold);
}

.auth-sub {
  color: var(--mut);
  font-size: 13.5px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 9px;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder { color: #55524B; }

.field input:focus {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.field-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: 0;
  color: var(--mut);
  cursor: pointer;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.field-eye:hover { color: var(--gold); }

.field-hint {
  font-size: 11.5px;
  color: #6E6A62;
  margin-top: 7px;
}

.alert {
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 20px;
  border: 1px solid;
}

.alert-error {
  color: #E9B9A9;
  border-color: rgba(201, 111, 90, 0.45);
  background: rgba(201, 111, 90, 0.08);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(180deg, var(--gold2) 0%, var(--gold) 60%, #B9972C 100%);
  color: #0B0B0B;
  border: 0;
  border-radius: 10px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.28);
  filter: brightness(1.04);
}

.btn-gold:active { transform: translateY(0); }

.btn-gold:focus-visible,
.topbar-link:focus-visible,
.field-eye:focus-visible,
.auth-alt a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.auth-alt {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 13px;
  color: var(--mut);
}

.auth-alt a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

.auth-alt a:hover { text-decoration: underline; }

.auth-foot {
  margin-top: auto;
  padding: 22px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #57534B;
}

@media (max-width: 480px) {
  .auth-card { padding: 36px 26px 32px; }
}

/* ============================================================
   SELECTOR DE IDIOMA (es | en | pt)
   ============================================================ */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Selector de idioma retirado: el sistema es solo espanol. */

/* ============================================================
   OPTIMIZACION MOVIL
   ============================================================ */
@media (max-width: 640px) {
  .topbar { padding: 14px 16px; gap: 10px; }
  .topbar-right { gap: 8px; }
  .brand-mark { width: 26px; height: 26px; font-size: 13px; }
  .brand-name { font-size: 10px; letter-spacing: 0.24em; }
  .topbar-link { font-size: 10.5px; }

  .auth-main { padding: 28px 16px 48px; }
  .auth-card { padding: 32px 22px 30px; }
  .auth-card .field input { font-size: 16px; } /* evita auto-zoom de iOS */
  .field-eye svg { width: 16px; height: 16px; }
  .pay-steps span { font-size: 9px; letter-spacing: 0.1em; padding: 8px 3px; }
  .pay-flow li { font-size: 13px; gap: 9px; }
  .checkout-frame { height: min(1100px, 70vh); }
  .btn-copy { padding: 9px 12px; }
}
