/* Meta Peptidez — account web pages (email confirm + password reset).
   Palette mirrors the app's cobalt scheme (Theme.swift): cobalt #0047AB / dark #5C8DE8,
   burnt-orange alert #AB5800 / #E07C2E. Theme-aware, self-contained, no external assets. */
:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e2e6ee;
  --text: #1a2433;
  --muted: #5b6472;
  --cobalt: #0047ab;
  --cobalt-bright: #1e66d9;
  --on-cobalt: #ffffff;
  --success: #1f8a4c;
  --alert: #ab5800;
  --ring: rgba(30, 102, 217, 0.35);
  --shadow: 0 10px 30px rgba(26, 36, 51, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161f;
    --card: #1c2331;
    --border: #2c3547;
    --text: #eef1f6;
    --muted: #9aa4b4;
    --cobalt: #5c8de8;
    --cobalt-bright: #8fb6f2;
    --on-cobalt: #0a1b38;
    --success: #56c98a;
    --alert: #e07c2e;
    --ring: rgba(143, 182, 242, 0.4);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  text-align: center;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--muted);
  margin-bottom: 24px;
}
.wordmark .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cobalt);
}
.icon {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--cobalt) 12%, transparent);
}
.icon svg { width: 32px; height: 32px; }
.icon.success { background: color-mix(in srgb, var(--success) 15%, transparent); }
.icon.success svg { stroke: var(--success); }
.icon.brand svg { stroke: var(--cobalt); }
.icon.alert { background: color-mix(in srgb, var(--alert) 15%, transparent); }
.icon.alert svg { stroke: var(--alert); }
h1 { font-size: 22px; margin: 0 0 8px; }
p { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
form { margin-top: 24px; text-align: left; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px; /* >=16px avoids iOS zoom-on-focus */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}
input[type="password"]:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--ring); }
button {
  width: 100%;
  margin-top: 22px;
  padding: 13px 16px;
  font-size: 16px; font-weight: 600;
  color: var(--on-cobalt);
  background: var(--cobalt);
  border: none; border-radius: 10px;
  cursor: pointer;
}
button:hover:not(:disabled) { background: var(--cobalt-bright); }
button:disabled { opacity: 0.55; cursor: default; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.msg { font-size: 14px; margin-top: 14px; min-height: 1.2em; }
.msg.error { color: var(--alert); }
.msg.ok { color: var(--success); }
.hidden { display: none !important; }
