/* ==========================================================================
   GenioPrep — Auth pages (login / signup)
   Extends styles.css landing system
   ========================================================================== */

/* Single-viewport shell: topbar / centered card / slim footer */
body.auth-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.auth-topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.auth-topbar .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.auth-main { position: relative; flex: 1; display: grid; place-items: center; padding: 24px 0 32px; overflow: hidden; }
.auth-main::before {
  content: ""; position: absolute; top: -260px; right: -140px;
  width: 720px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse at 60% 40%, var(--hero-glow) 0%, transparent 68%);
}
.auth-main::after {
  content: ""; position: absolute; top: 120px; left: -220px;
  width: 600px; height: 540px; pointer-events: none;
  background: radial-gradient(ellipse at 40% 40%, var(--hero-glow-2) 0%, transparent 66%);
}

.auth-wrap { width: min(calc(100% - 44px), 520px); margin-inline: auto; position: relative; }

.auth-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-card), var(--glow-gold);
  position: relative; overflow: hidden;
}
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-gold); }

.auth-card h1 {
  font-size: clamp(1.45rem, 3.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 10px 0 6px;
}
.auth-lede { color: var(--text-dim); font-size: .95rem; line-height: 1.6; }

/* Google button */
.google-btn {
  display: inline-flex; width: 100%; min-height: 48px;
  align-items: center; justify-content: center; gap: 11px;
  margin-top: 18px; border-radius: var(--r-sm);
  background: var(--surface-3); border: 1px solid var(--border-hi);
  color: var(--text); font-family: "Sora", sans-serif; font-weight: 600; font-size: .93rem;
  cursor: pointer; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .15s;
}
.google-btn:hover { border-color: var(--text-dim); transform: translateY(-1px); }
.google-btn svg { flex: none; }

.or-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 16px 0 0; color: var(--text-faint);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Tabs */
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
  margin: 16px 0 0; padding: 5px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--tint-neutral);
}
.auth-tab {
  min-height: 42px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-dim);
  font-family: "Sora", sans-serif; font-size: .86rem; font-weight: 600; cursor: pointer;
  transition: color .18s, background-color .18s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: var(--grad-gold); color: #3A2600; }

/* Form */
.auth-card label {
  display: block; margin: 14px 0 7px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: .84rem;
  color: var(--text-mid);
}
.auth-card input {
  width: 100%; min-height: 48px;
  border: 1px solid var(--border-hi); border-radius: var(--r-sm);
  padding: 11px 16px; font: inherit; font-size: .95rem;
  background: var(--bg); color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.auth-card input::placeholder { color: var(--text-faint); }
.auth-card input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--tint-gold); }
#otp { text-align: center; font-family: "JetBrains Mono", monospace; font-size: 1.4rem; letter-spacing: .3em; font-weight: 700; }

/* Buttons */
.auth-btn {
  display: inline-flex; width: 100%; min-height: 48px;
  align-items: center; justify-content: center; gap: 9px;
  margin-top: 14px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--grad-gold); color: #3A2600;
  font-family: "Sora", sans-serif; font-size: .95rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 8px 24px rgba(240,165,0,.28);
  transition: transform .15s, box-shadow .2s, opacity .15s;
}
.auth-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(240,165,0,.38); }
.auth-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.auth-btn.secondary {
  background: transparent; border-color: var(--border-hi); color: var(--text); box-shadow: none;
}
.auth-btn.secondary:hover:not(:disabled) { border-color: var(--text-dim); background: var(--tint-neutral); }

.forgot-link {
  display: inline-flex; margin-top: 12px; border: 0; padding: 0;
  background: transparent; color: var(--gold-text);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.forgot-link:hover { text-decoration: underline; }

/* Status */
.status {
  margin-top: 16px; border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 13px 16px; background: var(--tint-neutral);
  color: var(--text-dim); font-size: .88rem; line-height: 1.5;
}
.status.ok { border-color: rgba(34,197,94,.32); color: var(--green); background: rgba(34,197,94,.07); }
.status.error { border-color: rgba(244,89,91,.32); color: var(--red); background: rgba(244,89,91,.07); }

.secondary-copy { margin-top: 14px; text-align: center; font-size: .88rem; color: var(--text-dim); }
.secondary-copy.cta-links { font-size: 11px; }
.secondary-copy a { color: var(--gold-text); font-weight: 600; }
.secondary-copy a:hover { text-decoration: underline; }
.secondary-copy + .secondary-copy { margin-top: 8px; }

.hidden { display: none; }

/* Slim single-line footer */
.auth-footer { padding: 16px 0 20px; }
.auth-footer-inner { display: flex; align-items: center; justify-content: center; gap: 8px 22px; flex-wrap: wrap; }
.auth-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .8rem; color: var(--text-dim); font-weight: 500; }
.auth-footer-nav a:hover { color: var(--text); }
.auth-footer-copy { font-size: .74rem; color: var(--text-faint); }

@media (max-width: 560px) {
  .auth-card { padding: 28px 22px 26px; }
}
@media (max-height: 760px) {
  .auth-card { padding: 26px 30px 24px; }
  .auth-lede { display: none; }
}
