/* ============================================================
   ExpenseDesk – Login Page Styles
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* ── Animated BG ─────────────────────────────────────────────── */
.login-bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 80%, rgba(16,185,129,0.04) 0%, transparent 60%),
              #030712;
}

.orb {
  position: fixed; border-radius: 50%; filter: blur(80px);
  animation: floatOrb 8s ease-in-out infinite; pointer-events: none; z-index: 0;
}
.orb-1 { width: 400px; height: 400px; background: rgba(37,99,235,0.12); top: -10%; left: -5%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: rgba(139,92,246,0.1); top: 40%; right: -5%; animation-delay: 3s; }
.orb-3 { width: 250px; height: 250px; background: rgba(16,185,129,0.06); bottom: 0; left: 30%; animation-delay: 6s; }

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ── Left Brand Panel ────────────────────────────────────────── */
.login-brand {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 56px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, transparent 100%);
  border-right: 1px solid var(--border);
}
.brand-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 56px;
}
.brand-logo-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.brand-logo-text { font-size: 1.375rem; font-weight: 700; color: var(--text-primary); }
.brand-logo-text span { color: var(--accent-light); }

.brand-headline {
  font-size: 2.5rem; font-weight: 700; line-height: 1.2;
  color: var(--text-primary); margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.brand-headline em { font-style: normal; color: var(--accent-light); }
.brand-desc { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; max-width: 400px; }

.brand-features { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.brand-feature {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.9rem; color: var(--text-secondary);
}
.feature-dot {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.feature-dot.blue   { background: rgba(37,99,235,0.15); }
.feature-dot.green  { background: rgba(16,185,129,0.15); }
.feature-dot.purple { background: rgba(139,92,246,0.15); }
.feature-dot.amber  { background: rgba(245,158,11,0.15); }

.brand-footer { margin-top: auto; font-size: 0.75rem; color: var(--text-muted); }

/* ── Right Auth Panel ────────────────────────────────────────── */
.login-form-wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 48px;
}
.login-form-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s ease;
}
.auth-tabs {
  display: flex; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1; padding: 10px; text-align: center;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--t-fast); font-family: inherit;
}
.auth-tab.active { color: var(--accent-light); border-bottom-color: var(--accent); }
.auth-tab:hover:not(.active) { color: var(--text-secondary); }

.auth-panel { display: none; }
.auth-panel.active { display: flex; flex-direction: column; gap: 20px; animation: fadeIn 0.2s ease; }

.auth-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.auth-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

.auth-divider { position: relative; text-align: center; margin: 4px 0; }
.auth-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border);
}
.auth-divider span { position: relative; background: var(--bg-card); padding: 0 12px; font-size: 0.75rem; color: var(--text-muted); }

.auth-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--r-md); padding: 10px 14px;
  font-size: 0.8125rem; color: var(--error);
  display: none;
}
.auth-error.show { display: block; animation: fadeIn 0.2s ease; }

/* ── Responsive Login ────────────────────────────────────────── */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-wrap { min-height: 100vh; padding: 24px; }
}
@media (max-width: 480px) {
  .login-form-card { padding: 28px 20px; }
}
