﻿/* ════════════════════════════════════════════════════════════════
   Study Buddy — auth.css  v4.0  PREMIUM DARK THEME
   Deep Slate x Emerald x Amber — Professional login/signup UI
   ════════════════════════════════════════════════════════════════ */

:root {
  --auth-canvas:     #0a0c10;
  --auth-surface:    #0d1117;
  --auth-surface-2:  #161b22;
  --auth-surface-3:  #1c2333;
  --auth-border:     rgba(255,255,255,0.07);
  --auth-border-sub: rgba(255,255,255,0.04);
  --auth-text:       #e6edf3;
  --auth-muted:      #8b949e;
  --auth-dim:        #4d5966;

  --auth-emerald:        #34d399;
  --auth-emerald-dark:   #10b981;
  --auth-emerald-dim:    rgba(52,211,153,0.12);
  --auth-emerald-border: rgba(52,211,153,0.28);

  --auth-sky:        #38bdf8;
  --auth-sky-dim:    rgba(56,189,248,0.1);
  --auth-violet:     #8b5cf6;
  --auth-amber:      #f59e0b;
  --auth-red:        #f85149;
  --auth-red-dim:    rgba(248,81,73,0.12);
  --auth-red-border: rgba(248,81,73,0.3);

  --auth-grad-brand:   linear-gradient(135deg, #34d399 0%, #38bdf8 60%, #8b5cf6 100%);
  --auth-grad-emerald: linear-gradient(135deg, #34d399 0%, #10b981 100%);

  --auth-r-card:  20px;
  --auth-r-input: 10px;
  --auth-r-btn:   10px;

  --auth-font-heading: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --auth-font-body: 'Inter', system-ui, sans-serif;
  --auth-font-mono: 'JetBrains Mono', monospace;

  --auth-shadow-card: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(52,211,153,0.07);
}

*, *::before, *::after { box-sizing: border-box; }

body.auth-body {
  margin: 0; padding: 0;
  font-family: var(--auth-font-body);
  background-color: var(--auth-canvas);
  background-image:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(52,211,153,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 15%, rgba(56,189,248,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 45% 55% at 50% 100%, rgba(139,92,246,0.04) 0%, transparent 50%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  color: var(--auth-text); position: relative; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

.auth-page-container {
  width: 100%; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 16px; position: relative; z-index: 1;
}

.auth-ambient-glow { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.auth-ambient-glow--1 { width: 550px; height: 550px; background: radial-gradient(circle, rgba(52,211,153,0.12) 0%, transparent 70%); top: -180px; right: -140px; }
.auth-ambient-glow--2 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(56,189,248,0.09) 0%, transparent 70%); bottom: -200px; left: -160px; }

.auth-card-split {
  display: grid; grid-template-columns: 1.05fr 1fr;
  width: 100%; max-width: 1060px; min-height: 660px;
  background: var(--auth-surface);
  border-radius: var(--auth-r-card);
  box-shadow: var(--auth-shadow-card);
  overflow: hidden; position: relative; z-index: 2;
  border: 1px solid var(--auth-border);
  animation: authCardAppear 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes authCardAppear { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (max-width: 768px) { .auth-card-split { grid-template-columns: 1fr; max-width: 480px; } }

.auth-panel { display: flex; flex-direction: column; }

.auth-panel--visual {
  background: linear-gradient(145deg, #0d1117 0%, #111827 40%, #0f1b2b 70%, #0a1520 100%);
  border-right: 1px solid var(--auth-border);
  position: relative; overflow: hidden;
  padding: 32px 36px;
}

.auth-panel--visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(52,211,153,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(56,189,248,0.07) 0%, transparent 55%);
  pointer-events: none;
}

@media (max-width: 768px) { .auth-panel--visual { display: none; } }

.auth-panel--form {
  padding: 40px 44px;
  justify-content: center;
  background: var(--auth-surface);
  position: relative;
}
@media (max-width: 520px) { .auth-panel--form { padding: 28px 20px; } }

.auth-panel__top { margin-bottom: 28px; }

.auth-brand-pill {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  background: rgba(22,27,34,0.7);
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  padding: 8px 14px 8px 9px;
  transition: all 0.2s ease;
}
.auth-brand-pill:hover { border-color: var(--auth-emerald-border); background: rgba(52,211,153,0.06); }
.auth-brand-pill__logo { width: 32px; height: 32px; flex-shrink: 0; }
.auth-brand-pill__text { font-family: var(--auth-font-heading); font-size: 14px; font-weight: 700; color: var(--auth-text); letter-spacing: -0.02em; }
.auth-brand-pill__tag { font-family: var(--auth-font-mono); font-size: 9px; font-weight: 600; color: var(--auth-emerald); background: var(--auth-emerald-dim); border: 1px solid var(--auth-emerald-border); padding: 2px 8px; border-radius: 99px; letter-spacing: 0.7px; text-transform: uppercase; }

.auth-visual-content { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.auth-visual-heading { font-family: var(--auth-font-heading); font-size: 2rem; font-weight: 800; color: var(--auth-text); letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 12px; }
.auth-visual-subtitle { font-family: var(--auth-font-body); font-size: 0.95rem; color: var(--auth-muted); line-height: 1.65; margin-bottom: 28px; max-width: 340px; }

.auth-illustration-container { width: 100%; max-height: 280px; }
.auth-illustration-svg { width: 100%; height: auto; }

/* ── Feature stat tiles ── */
.auth-visual-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.auth-stat-tile {
  background: rgba(22,27,34,0.7); border: 1px solid var(--auth-border);
  border-radius: 12px; padding: 14px 16px; transition: all 0.2s ease;
}
.auth-stat-tile:hover { border-color: var(--auth-emerald-border); }
.auth-stat-num { font-family: var(--auth-font-heading); font-size: 1.5rem; font-weight: 800; color: var(--auth-emerald); line-height: 1; margin-bottom: 4px; }
.auth-stat-lbl { font-family: var(--auth-font-body); font-size: 11px; color: var(--auth-dim); font-weight: 500; }

/* ── Form side heading ── */
.auth-form-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; text-decoration: none; }
.auth-form-brand__icon { width: 30px; height: 30px; border-radius: 8px; background: var(--auth-grad-brand); display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; flex-shrink: 0; box-shadow: 0 0 14px rgba(52,211,153,0.3); }
.auth-form-brand__name { font-family: var(--auth-font-heading); font-size: 14px; font-weight: 700; color: var(--auth-text); letter-spacing: -0.02em; }

.auth-form-heading { font-family: var(--auth-font-heading); font-size: 1.55rem; font-weight: 800; color: var(--auth-text); letter-spacing: -0.03em; margin-bottom: 6px; }
.auth-form-sub { font-family: var(--auth-font-body); font-size: 13px; color: var(--auth-muted); line-height: 1.55; margin-bottom: 26px; }

/* ── Tab switcher ── */
.auth-tabs {
  display: flex; gap: 3px;
  background: rgba(13,17,23,0.8); border: 1px solid var(--auth-border);
  padding: 4px; border-radius: 12px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; background: none; border: 1px solid transparent;
  color: var(--auth-muted); font-family: var(--auth-font-body);
  font-size: 13px; font-weight: 500; padding: 8px 14px;
  border-radius: 9px; cursor: pointer; transition: all 0.18s ease;
  text-align: center;
}
.auth-tab.active { color: var(--auth-emerald); background: var(--auth-emerald-dim); border-color: var(--auth-emerald-border); font-weight: 600; }
.auth-tab:hover:not(.active) { color: var(--auth-text); background: rgba(255,255,255,0.04); }

/* ── Form fields ── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form.hidden { display: none; }

.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field label {
  font-family: var(--auth-font-body); font-size: 12.5px; font-weight: 600;
  color: var(--auth-text); display: flex; align-items: center; gap: 6px;
}

.auth-field .field-wrap { position: relative; }
.auth-field .field-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--auth-dim); pointer-events: none; }

.auth-field input {
  width: 100%;
  background: rgba(13,17,23,0.9);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-r-input);
  color: var(--auth-text);
  font-family: var(--auth-font-body);
  font-size: 13.5px;
  padding: 11px 14px;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.auth-field input.has-icon { padding-left: 38px; }
.auth-field input:focus { border-color: var(--auth-emerald-border); box-shadow: 0 0 0 3px rgba(52,211,153,0.1); }
.auth-field input.error { border-color: var(--auth-red-border); box-shadow: 0 0 0 3px rgba(248,81,73,0.1); }
.auth-field input::placeholder { color: var(--auth-dim); }

/* Password toggle */
.toggle-pw { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--auth-dim); cursor: pointer; font-size: 14px; padding: 2px 4px; transition: color 0.15s; line-height: 1; }
.toggle-pw:hover { color: var(--auth-text); }

/* Error message */
.auth-error {
  background: var(--auth-red-dim); border: 1px solid var(--auth-red-border);
  border-radius: 8px; padding: 10px 14px;
  font-family: var(--auth-font-body); font-size: 13px; color: var(--auth-red); line-height: 1.5;
  display: flex; align-items: flex-start; gap: 7px;
}
.auth-error.hidden { display: none; }
.auth-error-icon { flex-shrink: 0; margin-top: 1px; }

/* Submit button */
.auth-submit {
  padding: 12px 20px;
  background: var(--auth-grad-emerald);
  color: #fff; border: none; border-radius: var(--auth-r-btn);
  font-family: var(--auth-font-heading); font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 4px 20px rgba(52,211,153,0.32); transition: all 0.22s ease;
  margin-top: 4px; width: 100%; position: relative; overflow: hidden;
}
.auth-submit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.2s;
}
.auth-submit:hover::before { opacity: 1; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(52,211,153,0.5); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-submit-icon { font-size: 15px; }

/* ── Divider ── */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.auth-divider-line { flex: 1; height: 1px; background: var(--auth-border); }
.auth-divider-text { font-family: var(--auth-font-mono); font-size: 10px; color: var(--auth-dim); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }

/* ── Switch link ── */
.auth-switch { text-align: center; font-family: var(--auth-font-body); font-size: 13px; color: var(--auth-muted); margin-top: 8px; }
.auth-switch a { color: var(--auth-emerald); font-weight: 600; text-decoration: none; transition: color 0.15s; }
.auth-switch a:hover { color: #4ade80; text-decoration: underline; }

/* ── Trust badges row ── */
.auth-trust-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--auth-border-sub); flex-wrap: wrap; }
.auth-trust-badge { display: flex; align-items: center; gap: 6px; font-family: var(--auth-font-body); font-size: 11px; color: var(--auth-dim); }
.auth-trust-icon { font-size: 13px; }

/* ── Feature pills on visual panel ── */
.auth-feature-pills { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.auth-feature-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(22,27,34,0.6); border: 1px solid var(--auth-border);
  border-radius: 10px; padding: 10px 14px; transition: all 0.2s ease;
}
.auth-feature-pill:hover { border-color: var(--auth-emerald-border); background: rgba(52,211,153,0.05); }
.auth-feature-pill__icon { font-size: 16px; flex-shrink: 0; }
.auth-feature-pill__text { font-family: var(--auth-font-body); font-size: 12.5px; color: var(--auth-muted); }
.auth-feature-pill__text strong { color: var(--auth-text); font-weight: 600; }

/* ── Loading spinner ── */
.auth-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   LOGIN / SIGNUP EXISTING CLASS OVERRIDES (dark theme)
   ═══════════════════════════════════════════════════════════ */

/* Visual panel inner layout */
.auth-visual-content {
  flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1;
}
.auth-visual-heading {
  font-family: var(--auth-font-heading); font-size: 2.1rem; font-weight: 800; color: var(--auth-text);
  letter-spacing: -0.035em; line-height: 1.18; margin-bottom: 14px;
}
.auth-visual-subtitle { font-family: var(--auth-font-body); font-size: 0.95rem; color: var(--auth-muted); line-height: 1.65; margin-bottom: 30px; max-width: 340px; }

.auth-illustration-container { width: 100%; max-height: 280px; }
.auth-illustration-svg { width: 100%; height: auto; }

.auth-visual-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.auth-badge-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(22,27,34,0.6); border: 1px solid var(--auth-border);
  border-radius: 10px; padding: 9px 14px; transition: all 0.2s ease;
}
.auth-badge-item:hover { border-color: var(--auth-emerald-border); background: rgba(52,211,153,0.05); }
.auth-badge-icon { font-size: 15px; flex-shrink: 0; }
.auth-badge-text { font-family: var(--auth-font-body); font-size: 12.5px; color: var(--auth-muted); }

.auth-panel__bottom {
  margin-top: auto; padding-top: 24px;
  font-family: var(--auth-font-mono); font-size: 10px; color: var(--auth-dim);
}

/* Form container */
.auth-form-container { width: 100%; max-width: 400px; margin: 0 auto; }

.auth-mobile-header { display: none; margin-bottom: 24px; }
@media (max-width: 768px) { .auth-mobile-header { display: block; } }

.auth-mobile-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.auth-mobile-logo__icon { font-size: 24px; }
.auth-mobile-logo__name { font-family: var(--auth-font-heading); font-size: 16px; font-weight: 700; color: var(--auth-text); letter-spacing: -0.02em; }

.auth-form-intro { margin-bottom: 24px; }
.auth-form-tag {
  display: inline-block; font-family: var(--auth-font-mono); font-size: 9px; font-weight: 600;
  color: var(--auth-emerald); background: var(--auth-emerald-dim); border: 1px solid var(--auth-emerald-border);
  padding: 2px 10px; border-radius: 99px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px;
}
.auth-form-title {
  font-family: var(--auth-font-heading); font-size: 1.65rem; font-weight: 800; color: var(--auth-text);
  letter-spacing: -0.03em; margin-bottom: 8px; line-height: 1.2;
}
.auth-form-desc { font-family: var(--auth-font-body); font-size: 13.5px; color: var(--auth-muted); line-height: 1.6; }

/* Banners */
.auth-banner {
  display: none; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px;
  font-family: var(--auth-font-body); font-size: 13px; line-height: 1.5;
}
.auth-banner.show { display: flex; }
.auth-banner--error { background: var(--auth-red-dim); border: 1px solid var(--auth-red-border); color: var(--auth-red); }
.auth-banner--success { background: var(--auth-emerald-dim); border: 1px solid var(--auth-emerald-border); color: var(--auth-emerald); }
.auth-banner__icon { flex-shrink: 0; }
.auth-banner__text { flex: 1; }

/* Field groups */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-field-group { display: flex; flex-direction: column; gap: 7px; }
.auth-field-label { font-family: var(--auth-font-body); font-size: 12.5px; font-weight: 600; color: var(--auth-text); display: block; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; }

.auth-input-shell { position: relative; display: flex; align-items: center; }
.auth-input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--auth-dim); display: flex; align-items: center;
  pointer-events: none; transition: color 0.18s;
}
.auth-input-shell:focus-within .auth-input-icon { color: var(--auth-emerald); }

.auth-input {
  width: 100%; padding: 11px 14px 11px 42px;
  background: rgba(13,17,23,0.9);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-r-input);
  color: var(--auth-text); font-family: var(--auth-font-body); font-size: 13.5px;
  outline: none; transition: all 0.2s ease; -webkit-appearance: none; appearance: none;
}
.auth-input:focus { border-color: var(--auth-emerald-border); box-shadow: 0 0 0 3px rgba(52,211,153,0.1); }
.auth-input.error, .auth-input:invalid:not(:placeholder-shown) { border-color: var(--auth-red-border); }
.auth-input::placeholder { color: var(--auth-dim); }
.auth-input--has-toggle { padding-right: 44px; }

.auth-toggle-pwd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--auth-dim); cursor: pointer;
  padding: 4px; transition: color 0.15s; display: flex; align-items: center;
}
.auth-toggle-pwd:hover { color: var(--auth-text); }

.auth-field-help { font-family: var(--auth-font-body); font-size: 11.5px; color: var(--auth-dim); }

/* Options row */
.auth-row-options { display: flex; align-items: center; justify-content: space-between; margin: -4px 0; }

.auth-checkbox-label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.auth-checkbox-input { position: absolute; opacity: 0; width: 0; height: 0; }
.auth-checkbox-box {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--auth-border); background: rgba(13,17,23,0.9);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s ease; flex-shrink: 0;
}
.auth-checkbox-input:checked + .auth-checkbox-box { background: var(--auth-emerald-dark); border-color: var(--auth-emerald-dark); }
.auth-checkbox-box svg { width: 10px; height: 8px; opacity: 0; transition: opacity 0.15s; }
.auth-checkbox-input:checked + .auth-checkbox-box svg { opacity: 1; }
.auth-checkbox-text { font-family: var(--auth-font-body); font-size: 13px; color: var(--auth-muted); }

.auth-forgot-link { font-family: var(--auth-font-body); font-size: 12.5px; color: var(--auth-emerald); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.auth-forgot-link:hover { color: #4ade80; text-decoration: underline; }

/* Submit button */
.auth-submit-btn {
  width: 100%; padding: 12px 20px;
  background: var(--auth-grad-emerald); color: #fff; border: none;
  border-radius: var(--auth-r-btn); font-family: var(--auth-font-heading); font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 4px 20px rgba(52,211,153,0.32); transition: all 0.22s ease; position: relative; overflow: hidden;
}
.auth-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(52,211,153,0.5); background: linear-gradient(135deg, #4ade80 0%, #34d399 100%); }
.auth-submit-btn:active { transform: translateY(0); }
.auth-submit-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.auth-btn-text, .auth-btn-icon { position: relative; z-index: 1; }
.auth-btn-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.auth-submit-btn.loading .auth-btn-spinner { display: block; }
.auth-submit-btn.loading .auth-btn-text, .auth-submit-btn.loading .auth-btn-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Switch section */
.auth-switch-section { text-align: center; margin-top: 20px; }
.auth-switch-text { font-family: var(--auth-font-body); font-size: 13.5px; color: var(--auth-muted); }
.auth-switch-cta { color: var(--auth-emerald); font-weight: 600; text-decoration: none; transition: color 0.15s; }
.auth-switch-cta:hover { color: #4ade80; text-decoration: underline; }

/* Demo card */
.auth-demo-card {
  margin-top: 20px; border: 1px dashed rgba(52,211,153,0.2); border-radius: 10px;
  padding: 14px 16px; background: rgba(52,211,153,0.04); text-align: center;
}
.auth-demo-badge {
  font-family: var(--auth-font-mono); font-size: 9px; font-weight: 700;
  color: var(--auth-amber); background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3);
  padding: 2px 9px; border-radius: 99px; letter-spacing: 0.8px; text-transform: uppercase;
  display: inline-block; margin-bottom: 10px;
}
.auth-demo-btn {
  background: none; border: 1px solid var(--auth-border); color: var(--auth-muted);
  font-family: var(--auth-font-body); font-size: 13px; padding: 7px 16px;
  border-radius: 8px; cursor: pointer; transition: all 0.18s ease; width: 100%;
}
.auth-demo-btn:hover { border-color: var(--auth-emerald-border); color: var(--auth-text); background: rgba(52,211,153,0.05); }
.auth-demo-btn strong { color: var(--auth-emerald); }

/* Forgot modal */
.auth-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 9999; }
.auth-modal:not([hidden]) { display: flex; }
.auth-modal__backdrop { position: absolute; inset: 0; background: rgba(10,12,16,0.85); backdrop-filter: blur(10px); cursor: pointer; }
.auth-modal__box {
  position: relative; z-index: 1; background: var(--auth-surface-2); border: 1px solid var(--auth-border);
  border-radius: 18px; padding: 32px; width: 100%; max-width: 420px; margin: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  animation: authCardAppear 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
.auth-modal__close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--auth-dim); cursor: pointer; font-size: 20px; transition: color 0.15s; padding: 4px;
}
.auth-modal__close:hover { color: var(--auth-text); }
.auth-modal__header { text-align: center; margin-bottom: 24px; }
.auth-modal__icon { font-size: 30px; margin-bottom: 10px; }
.auth-modal__title { font-family: var(--auth-font-heading); font-size: 1.25rem; font-weight: 800; color: var(--auth-text); letter-spacing: -0.02em; margin-bottom: 8px; }
.auth-modal__desc { font-family: var(--auth-font-body); font-size: 13.5px; color: var(--auth-muted); line-height: 1.6; }
.auth-modal__form { display: flex; flex-direction: column; gap: 16px; }
.auth-modal__actions { display: flex; gap: 10px; }
.auth-btn-ghost {
  flex: 0 0 auto; padding: 11px 18px; background: none; color: var(--auth-muted);
  border: 1px solid var(--auth-border); border-radius: 9px; font-family: var(--auth-font-body);
  font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all 0.18s;
}
.auth-btn-ghost:hover { color: var(--auth-text); border-color: var(--auth-border-hover); }
.auth-modal__actions .auth-submit-btn { flex: 1; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .auth-card-split { min-height: auto; }
  .auth-panel--form { padding: 28px 24px; }
}
@media (max-width: 520px) {
  .auth-panel--form { padding: 22px 16px; }
  .auth-modal__box { padding: 24px 18px; }
}
