/* Auth Pages (Login/Signup) */

:root {
  --bg-primary: #f5f7fb;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #dbe3ef;
  --accent: #4f46e5;
  --accent-glow: rgba(79, 70, 229, 0.2);
  --error: #dc2626;
  --radius-md: 12px;
  --radius-xl: 18px;
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-card: #111827;
  --bg-input: #0b1220;
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --error: #ef4444;
  --shadow-lg: 0 18px 40px rgba(2, 6, 23, 0.5);
}

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 20px;
}

.auth-container {
  display: flex;
  gap: 60px;
  max-width: 900px;
  width: 100%;
  align-items: center;
}

.auth-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

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

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 24px;
}

.auth-brand .brand-badge { font-size: 1.5rem; }

.auth-brand .brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-header h1 { font-size: 1.75rem; margin-bottom: 8px; }
.auth-header p { color: var(--text-muted); }

.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form .form-group { display: flex; flex-direction: column; gap: 8px; }
.auth-form label { font-weight: 500; }

.auth-form,
.auth-header,
.auth-footer,
.auth-features,
.auth-features h2,
.auth-features li {
  color: var(--text-primary);
}

.auth-form .form-input {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 1rem;
}

.auth-form .form-input::placeholder {
  color: var(--text-muted);
}

.auth-form .form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: var(--error);
}

.form-error.hidden { display: none; }
.btn-block { width: 100%; }

.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

.auth-divider span {
  padding: 0 12px;
}

.google-auth-btn {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--text-muted);
}

.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
.skip-link { display: block; margin-top: 16px; font-size: 0.9rem; }

.auth-features { flex: 0 0 300px; }
.auth-features h2 { font-size: 1.2rem; margin-bottom: 24px; }
.auth-features ul { list-style: none; padding: 0; }

.auth-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.feature-icon { font-size: 1.5rem; }

@media (max-width: 768px) {
  .auth-container { flex-direction: column; }
  .auth-features { order: -1; width: 100%; }
}

.form-success{background:#ecfdf3;color:#166534;border:1px solid #86efac;border-radius:12px;padding:10px 12px;font-size:14px;margin-bottom:12px}
