/* ── Auth Page Shell ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

/* Subtle floating accents — solid unified violet glow (no gradients) */
.auth-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.auth-bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  background: var(--accent-violet-dim);
}
.auth-bg-orb-1 {
  width: 500px; height: 500px;
  top: -120px; left: -120px;
  animation: floatOrb 16s ease-in-out infinite;
}
.auth-bg-orb-2 {
  width: 400px; height: 400px;
  bottom: -80px; right: -80px;
  animation: floatOrb 20s ease-in-out infinite reverse;
}
.auth-bg-orb-3 {
  width: 320px; height: 320px;
  top: 40%; left: 55%;
  animation: floatOrb 26s ease-in-out infinite 3s;
}

/* ── Auth Split (desktop) ─────────────────────────────────────── */
.auth-left {
  flex: 1; display: none; align-items: center; justify-content: center;
  padding: var(--space-12); position: relative;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
}
.auth-brand { text-align: center; }
.auth-brand-logo {
  width: 64px; height: 64px; background: var(--accent-violet);
  border-radius: var(--radius-xl); display: flex; align-items: center;
  justify-content: center; margin: 0 auto var(--space-6);
  box-shadow: var(--shadow-glow); animation: glow 4s ease infinite;
}
.auth-brand-logo svg { width: 32px; height: 32px; color: white; }
.auth-brand-name { font-size: var(--text-3xl); font-weight: 800; margin-bottom: var(--space-3); }
.auth-brand-tagline { font-size: var(--text-base); color: var(--text-muted); max-width: 280px; line-height: var(--leading-relaxed); }
.auth-features { margin-top: var(--space-10); display: flex; flex-direction: column; gap: var(--space-4); }
.auth-feature { display: flex; align-items: center; gap: var(--space-3); }
.auth-feature-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--accent-violet-dim); border: 1px solid rgba(124,58,237,0.3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-feature-icon svg { width: 18px; height: 18px; color: var(--accent-violet-light); }
.auth-feature-text { font-size: var(--text-sm); color: var(--text-secondary); }

/* ── Auth Right (form side) ───────────────────────────────────── */
.auth-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: var(--space-6); position: relative; z-index: 1;
}
.auth-card {
  width: 100%; max-width: 440px;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-2xl);
  background: var(--bg-card);           /* solid fallback */
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
  }
}
.auth-card-header { text-align: center; margin-bottom: var(--space-8); }
.auth-logo {
  width: 52px; height: 52px; background: var(--accent-violet);
  border-radius: var(--radius-xl); display: flex; align-items: center;
  justify-content: center; margin: 0 auto var(--space-4);
  box-shadow: var(--shadow-glow);
}
.auth-logo svg { width: 26px; height: 26px; color: white; }
.auth-title { font-size: var(--text-2xl); font-weight: 800; margin-bottom: var(--space-2); }
.auth-subtitle { font-size: var(--text-sm); color: var(--text-muted); }

/* Auth tabs */
.auth-tabs {
  display: flex; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 4px; margin-bottom: var(--space-6);
}
.auth-tab {
  flex: 1; padding: 9px; text-align: center;
  font-size: var(--text-sm); font-weight: 600; color: var(--text-muted);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--transition); border: none; background: transparent;
  font-family: var(--font-sans);
}
.auth-tab.active { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }

/* Auth form */
.auth-form { display: flex; flex-direction: column; gap: var(--space-4); }
.auth-form .form-group { margin-bottom: 0; }
.auth-submit { margin-top: var(--space-2); }
.auth-footer { text-align: center; margin-top: var(--space-5); font-size: var(--text-sm); color: var(--text-muted); }
.auth-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm); color: var(--red-soft); text-align: center;
}

/* ── Desktop split ────────────────────────────────────────────── */
@media (min-width: 900px) {
  .auth-left { display: flex; }
  .auth-right { flex: none; width: 480px; border-left: 1px solid var(--border); }
}
