/* =============================================================================
   AUTH PAGES ON THE SHARED THEME — sign in / sign up, forgot + reset password,
   unsubscribe. Loaded after auth.css and before auth-light.css, so light mode
   keeps its own white card and pale panels.
   Same language as css/shared/theme.css: deep slate, solid surfaces, IBM Plex,
   one accent (cyan on dark, blue for actions), solid headings, no glow / lift /
   sheen on buttons.
============================================================================= */
:root {
  --auth-bg: #0e1626;
  --auth-form-bg: #0e1626;
  --auth-card-bg: #141e31;
  --auth-border: rgba(255,255,255,0.14);
  --auth-border-soft: rgba(255,255,255,0.08);
  --accent: #3b82f6;
  --accent-bright: #5cc8f2;
  --accent-glow: rgba(92,200,242,0.25);
  --accent-dim: rgba(92,200,242,0.1);
  --cyan: #5cc8f2;
  --text-primary: #e8edf5;
  --text-secondary: #b8c4d6;
  --text-muted: #8a9ab3;
}
html, body { font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* Left panel: slate with the theme's soft blue / cyan light */
.auth-visual {
  background:
    radial-gradient(ellipse 60% 45% at 18% 18%, rgba(59,130,246,0.16), transparent 70%),
    radial-gradient(ellipse 55% 40% at 82% 85%, rgba(92,200,242,0.09), transparent 70%),
    #0b1220;
}
.auth-visual::before {
  background:
    linear-gradient(to bottom, rgba(11,18,32,0.5) 0%, transparent 14%),
    linear-gradient(to top, rgba(11,18,32,0.55) 0%, transparent 18%);
}
.auth-visual::after { background: linear-gradient(to right, transparent 70%, rgba(14,22,38,0.8) 100%); }
.auth-visual-edge-glow { background: rgba(255,255,255,0.08); box-shadow: none; top: 0; bottom: 0; }
.auth-visual-headline::before { display: none; }
.auth-visual-headline h1 { color: var(--text-primary); letter-spacing: -0.025em; }
.auth-visual-headline h1 em {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: #5cc8f2;
}
.auth-visual-headline p { color: var(--text-3, #8a9ab3); }
.auth-metric-chip { color: #b8c4d6; backdrop-filter: none; -webkit-backdrop-filter: none; }
.auth-metric-chip:hover { border-color: rgba(92,200,242,0.4); color: #e8edf5; }
.auth-metric-chip svg { color: #5cc8f2; }

/* Right panel + card: solid surfaces, one hairline border */
.auth-form-side { background: var(--auth-bg); }
.auth-form-side::before { background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px); }
.auth-form-side::after { background: rgba(255,255,255,0.06); }
.auth-card {
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-border-soft);
  border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(2,6,23,0.6);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.auth-card::before { display: none; }

.auth-tab { color: var(--text-muted); }
.auth-tab.active { background: rgba(92,200,242,0.1); color: var(--text-primary); border-color: rgba(92,200,242,0.3); }
.auth-heading h2 { letter-spacing: -0.025em; font-weight: 700; }
.auth-heading p a { color: #5cc8f2; }

.auth-field label { color: var(--text-secondary); }
.auth-field input::placeholder { color: #5d6d86; }
.auth-field input:focus {
  border-color: rgba(92,200,242,0.6);
  background: rgba(92,200,242,0.04);
  box-shadow: 0 0 0 3px rgba(92,200,242,0.18);
}
.password-toggle { color: var(--text-muted); }
.password-toggle:hover { color: var(--text-primary); }

.auth-forgot, .auth-switch a, .auth-switch button, .auth-promo-toggle { color: #5cc8f2; }
.auth-forgot:hover, .auth-switch a:hover, .auth-switch button:hover, .auth-promo-toggle:hover { color: #9be0f8; }
.auth-terms a, .auth-legal a { color: #5cc8f2; }
.auth-legal { color: var(--text-muted); }

/* Buttons: colour change on hover, no glow, no lift, no sheen */
.auth-btn-primary { background: #3b82f6; border: 1px solid #3b82f6; border-radius: 10px; font-weight: 600; }
.auth-btn-primary:hover { background: #2563eb; border-color: #2563eb; box-shadow: none; transform: none; }
.auth-btn-primary::after { display: none; }
.auth-oauth-btn { color: var(--text-secondary); }
.auth-oauth-btn:hover { color: var(--text-primary); transform: none; }

@media (max-width: 480px) {
  .auth-card { background: transparent; border: none; box-shadow: none; }
  .auth-heading h2 { color: var(--text-primary); }
  .auth-heading p, .auth-remember, .auth-switch { color: var(--text-secondary); }
  .auth-field label { color: var(--text-secondary); }
  .auth-divider span { color: var(--text-muted); }
}

/* Light mode: auth-light.css keeps the white card and pale panels; only the
   accents follow the theme's deeper blue. */
html[data-theme="light"] .auth-visual-headline h1 em { color: #2563eb; }
html[data-theme="light"] .auth-visual-headline p { color: #475569; }
html[data-theme="light"] .auth-metric-chip svg { color: #2563eb; }
html[data-theme="light"] .auth-forgot,
html[data-theme="light"] .auth-switch a,
html[data-theme="light"] .auth-switch button,
html[data-theme="light"] .auth-promo-toggle,
html[data-theme="light"] .auth-heading p a { color: #2563eb; }
html[data-theme="light"] .auth-forgot:hover,
html[data-theme="light"] .auth-switch a:hover,
html[data-theme="light"] .auth-switch button:hover,
html[data-theme="light"] .auth-promo-toggle:hover { color: #1d4ed8; }
html[data-theme="light"] .auth-btn-primary { background: #2563eb; border-color: #2563eb; }
html[data-theme="light"] .auth-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
html[data-theme="light"] .auth-field input:focus { border-color: rgba(37,99,235,0.55); box-shadow: 0 0 0 3px rgba(37,99,235,0.14); }
html[data-theme="light"] .auth-form-side::after { background: rgba(15,23,42,0.06); }
html[data-theme="light"] .auth-visual-edge-glow { background: rgba(15,23,42,0.08); }
@media (max-width: 480px) {
  html[data-theme="light"] .auth-heading h2 { color: #0f172a; }
  html[data-theme="light"] .auth-heading p,
  html[data-theme="light"] .auth-remember,
  html[data-theme="light"] .auth-switch,
  html[data-theme="light"] .auth-field label { color: #475569; }
}
