:root {
  color-scheme: light dark;
  --paper: #fbfbfa;
  --ink: #16181d;
  --line: #d9dbe0;
  --field: #ffffff;
  --warn: #9a4d08;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111317;
    --ink: #f1f2f4;
    --line: #2f333b;
    --field: #191c21;
    --warn: #f0a35e;
  }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 24rem;
  margin: 0 auto;
  padding: calc(64px + env(safe-area-inset-top)) 16px 32px;
}

h1 { margin: 0 0 20px; font-size: 28px; line-height: 1.2; }

label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }

input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
}

.error { min-height: 22px; margin: 12px 0 0; color: var(--warn); font-size: 15px; }
