/* WealthPlan Pro — Auth Pages */

body.auth-page {
  display: flex;
  min-height: 100vh;
  background: var(--bg-base);
  overflow: hidden;
}

:root[data-theme="light"] body.auth-page {
  background: var(--bg-base);
}

/* Left panel */
.auth-left {
  flex: 0 0 45%;
  background: linear-gradient(160deg, #0d1b33 0%, #080d1a 50%, #0a1220 100%);
  display: flex;
  flex-direction: column;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

:root[data-theme="light"] .auth-left {
  background: linear-gradient(160deg, #ffffff 0%, #f6f8fc 55%, #edf3fb 100%);
  border-right: 1px solid var(--border);
}

.auth-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}

.auth-left::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  bottom: 100px; left: -50px;
  border-radius: 50%;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative; z-index: 1;
}

.auth-logo .logo-box {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #000;
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}

.auth-logo .logo-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.auth-logo .logo-tag {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.auth-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative; z-index: 1;
}

.auth-hero h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.auth-hero h1 span {
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 32px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

:root[data-theme="light"] .feature-icon {
  background: rgba(217,119,6,0.10);
  border-color: rgba(217,119,6,0.18);
}

.feature-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feature-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-footer-text {
  font-size: 12px;
  color: var(--text-muted);
  position: relative; z-index: 1;
}

/* Right panel */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-form-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.auth-form-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.auth-footer-links {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer-links a {
  color: var(--gold);
  font-weight: 600;
}

.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease, background 0.4s ease;
  width: 0;
}

.strength-text { font-size: 11px; }

.eye-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.eye-toggle:hover { color: var(--text-secondary); }

/* Responsive */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .auth-right { padding: 24px 16px; }
  .auth-form-header h2 { font-size: 22px; }
}
