:root {
  color-scheme: light dark;
  --bg: #f5f4f0;
  --card: #ffffff;
  --text: #1c1e21;
  --muted: #565b62;
  --line: #cfccc4;
  --accent: #1d5b84;
  --accent-hover: #164a6c;
  --accent-text: #ffffff;
  --error: #a3241c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141619;
    --card: #1e2125;
    --text: #ecebe7;
    --muted: #a9adb3;
    --line: #42464d;
    --accent: #8cc3ea;
    --accent-hover: #a9d3f1;
    --accent-text: #0c1923;
    --error: #ff9b91;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main {
  flex: 1;
  width: 100%;
  max-width: 31rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}
h1 {
  margin: 0 0 0.75rem;
  font-size: 1.625rem;
  line-height: 1.25;
  font-weight: 650;
  text-wrap: balance;
}
p { margin: 0 0 1rem; color: var(--muted); }
.error { color: var(--error); font-weight: 600; }
form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
.field { display: grid; gap: 0.4rem; }
label { font-weight: 600; }
input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
button {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}
button:hover { background: var(--accent-hover); }
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.875rem;
}
footer a { color: var(--muted); }
@media (min-width: 40rem) {
  main { padding-top: 6rem; }
  h1 { font-size: 2rem; }
}
