/* auth.css — Auth screens (login, signup, onboarding) */

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

:root {
  --bg-deep: #07070f;
  --bg-card: #111118;
  --bg-elevated: #1a1a28;
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-faint: rgba(255, 255, 255, 0.25);
  --accent: #4ADE80;
  --accent-dim: rgba(74, 222, 128, 0.12);
  --accent-glow: rgba(74, 222, 128, 0.35);
  --danger: #EF4444;
  --danger-dim: rgba(239, 68, 68, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
}

html, body {
  height: 100%;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Backdrop */
.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.backdrop-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  backdrop-filter: blur(20px);
}

.onboarding-card {
  max-width: 460px;
}

/* Logo */
.auth-logo {
  font-size: 48px;
  text-align: center;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.4));
}

/* Headings */
.auth-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Error */
.auth-error {
  background: var(--danger-dim);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  color: #FCA5A5;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(74, 222, 128, 0.04);
}

.field-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}

/* Buttons */
.auth-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  letter-spacing: 0.2px;
}

.primary-btn {
  background: var(--accent);
  color: #061209;
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.25);
}

.primary-btn:hover {
  background: #6AE98C;
  box-shadow: 0 6px 28px rgba(74, 222, 128, 0.35);
  transform: translateY(-1px);
}

.primary-btn:active { transform: translateY(0); }

/* Footer */
.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover { text-decoration: underline; }

/* Input focus states */
input:focus-visible { outline: none; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Mobile */
@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; border-radius: 20px; }
  .auth-title { font-size: 24px; }
}