/* ============================================================
   DAWNFALL — Account pages (register, forgot-password, reset-password)
   Requires: shared.css
   ============================================================ */

/* Background: radial glows matching the Launcher's aesthetic */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(141, 160, 232, 0.18) 0%, transparent 65%),
    radial-gradient(800px 480px at 80% 15%, rgba(201, 176, 233, 0.14) 0%, transparent 65%),
    radial-gradient(1000px 500px at 50% 0%,  rgba(27, 187, 201, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, #07090f, #0a0d16);
}

/* ── Page navbar ─────────────────────────────────────────── */

.page-nav {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.70);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-shrink: 0;
}

.page-nav-logo {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.page-nav-logo span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Auth layout ─────────────────────────────────────────── */

.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(10, 14, 24, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 38px 36px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(0,0,0,0.65);
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Auth card typography ────────────────────────────────── */

.auth-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ── Form ────────────────────────────────────────────────── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-card label input {
  height: 48px;
  padding: 0 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 140ms, box-shadow 140ms, background 140ms;
  outline: none;
  width: 100%;
}

.auth-card label input::placeholder { color: rgba(255,255,255,0.28); }

.auth-card label input:focus {
  border-color: var(--brand-1);
  background: rgba(255,255,255,0.075);
  box-shadow: 0 0 0 3px var(--focus);
}

/* ── Primary button ──────────────────────────────────────── */

.auth-card .btn-primary {
  width: 100%;
  height: 50px;
  background: var(--brand-gradient);
  color: rgba(6, 10, 16, 0.95);
  border: 1px solid var(--border-brand);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: filter 140ms, box-shadow 140ms, transform 80ms;
  box-shadow: 0 4px 20px rgba(52, 209, 200, 0.22);
  outline: none;
}

.auth-card .btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px rgba(52, 209, 200, 0.35);
}

.auth-card .btn-primary:active  { transform: translateY(1px); }
.auth-card .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Alerts ──────────────────────────────────────────────── */

.auth-card .alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  line-height: 1.5;
}

.auth-card .alert-success {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.auth-card .alert-error {
  background: rgba(255, 106, 106, 0.10);
  border-color: rgba(255, 106, 106, 0.28);
  color: #fca5a5;
}

/* ── Helper text ─────────────────────────────────────────── */

.auth-hint {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.auth-info {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Legal pages (privacy policy, terms) ────────────────── */

.legal-page {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 20px 80px;
}

.legal-doc {
  width: 100%;
  max-width: 720px;
}

.legal-doc h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.legal-doc .legal-date {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.legal-doc h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 36px 0 12px;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-doc ul {
  padding-left: 20px;
  margin-top: 6px;
}

.legal-doc li {
  margin-bottom: 4px;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
}

.legal-doc th,
.legal-doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.legal-doc th {
  color: var(--text);
  font-weight: 600;
  background: rgba(255,255,255,0.03);
}

.legal-doc a {
  color: var(--brand-2);
  text-decoration: none;
}

.legal-doc a:hover {
  text-decoration: underline;
}

hr.legal-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0 0;
}

/* ── Footer links ────────────────────────────────────────── */

.auth-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.auth-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 120ms;
}

.auth-links a:hover,
.auth-links a.accent { color: var(--brand-2); }
