/* Login, sign-up and password pages. Same tokens as style.css. */
:root {
  --bg: #faf8f5; --surface: #ffffff; --surface-2: #f5f2ed; --text: #1f2937; --muted: #6b7280; --line: #ebe6de;
  --primary: #0f766e; --primary-soft: #ccfbf1; --primary-tint: #f0fdfa;
  --cta: #e8553f; --cta-hover: #d4452f; --cta-ink: #ffffff; --cta-glow: #fde2dc;
  --success: #15803d; --success-soft: #dcfce7;
  --shadow-lg: 0 2px 4px rgba(31, 41, 55, 0.04), 0 16px 40px rgba(31, 41, 55, 0.1);
  --head: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f172a; --surface: #1e293b; --surface-2: #172033; --text: #e2e8f0; --muted: #94a3b8; --line: #334155;
    --primary: #2dd4bf; --primary-soft: #134e4a; --primary-tint: #112f3a;
    --cta: #fb8a7a; --cta-hover: #fca596; --cta-ink: #1f1310; --cta-glow: #4a2723;
    --success: #4ade80; --success-soft: #14532d;
    --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--body-font); font-size: 17px; line-height: 1.55; color: var(--text);
  background: radial-gradient(700px 380px at 90% -10%, var(--primary-soft), transparent 60%), var(--bg);
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 30px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
}
.logo { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; color: var(--text); margin-bottom: 24px; }
.logo-mark { width: 36px; height: 36px; }
.lm-bg { fill: var(--surface); stroke: var(--line); stroke-width: 3; }
.lm-teal { fill: var(--primary); }
.lm-coral { fill: var(--cta); }
.ln { font-family: var(--head); font-weight: 900; font-size: 19px; }
.ln span { color: var(--primary); }
h1 { font-family: var(--head); font-weight: 900; font-size: 28px; line-height: 1.15; text-align: center; margin-bottom: 6px; }
.sub { font-size: 16px; color: var(--muted); text-align: center; margin-bottom: 22px; }
.alert, .alert.err { padding: 12px 14px; border-radius: 14px; font-size: 15px; margin-bottom: 16px; background: var(--cta-glow); border-left: 4px solid var(--cta); }
.alert.ok, .ok { background: var(--success-soft); color: var(--success); border-left: none; padding: 14px; border-radius: 14px; font-size: 15px; }
label { display: block; font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
label .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 16px;
  background: var(--surface); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.btn {
  display: block; width: 100%; padding: 15px; margin-top: 20px; background: var(--cta); color: var(--cta-ink);
  border: none; border-radius: 999px; font-weight: 700; font-size: 17px; cursor: pointer; text-align: center;
  text-decoration: none; transition: background 0.15s, box-shadow 0.2s;
}
.btn:hover { background: var(--cta-hover); box-shadow: 0 6px 20px var(--cta-glow); }
.links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 15px; color: var(--muted); }
.links.center { justify-content: center; }
.links a, .back { color: var(--primary); font-weight: 700; text-decoration: none; }
.back { display: block; text-align: center; margin-top: 18px; font-size: 15px; }
.privacy { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }
.icon { width: 72px; height: 72px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 16px; }
.icon svg { width: 34px; height: 34px; }
.center-card { text-align: center; }
.center-card p { color: var(--muted); margin-bottom: 8px; }
.center-card .em { font-weight: 700; color: var(--text); }
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; transition: border-color 0.15s, background 0.15s;
}
.google-btn:hover { border-color: var(--muted); background: var(--surface-2); }
.google-btn svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
[hidden] { display: none !important; }
.linkish { background: none; border: none; padding: 0; color: var(--primary); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
