:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #1c1c1a;
  --muted: #5d5d58;
  --line: #d9d9d3;
  --accent: #1b5e4b;
  --accent-text: #ffffff;
  --error: #a4262c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --card: #1f1f1d;
    --text: #efefea;
    --muted: #a5a59d;
    --line: #34342f;
    --accent: #5fbf9f;
    --accent-text: #0e1a15;
    --error: #ff8a8f;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main {
  width: 100%;
  max-width: 400px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
h1 { margin: 0 0 4px; font-size: 1.4rem; }
p { margin: 0 0 16px; color: var(--muted); }
label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 0.9rem; }
input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button {
  width: 100%;
  margin-top: 20px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
button[disabled] { opacity: 0.6; cursor: progress; }
.error { min-height: 1.5em; margin: 12px 0 0; color: var(--error); font-size: 0.9rem; }
.hint { margin: 6px 0 0; font-size: 0.85rem; }
a { color: var(--accent); }
