:root {
  color-scheme: light;
  --plane: #f4efe6;
  --surface: #fffdf8;
  --ink: #2a221c;
  --ink-2: #5d5148;
  --hairline: #e6dccd;
  --accent: #b4532a;
  --accent-ink: #ffffff;
  --critical: #b3261e;
  --focus: #2a78d6;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --plane: #171411;
    --surface: #24201d;
    --ink: #f1e8dc;
    --ink-2: #c9bdae;
    --hairline: #3a332d;
    --accent: #e0855a;
    --accent-ink: #1d1916;
    --critical: #ff8a80;
    --focus: #6da7ec;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--plane);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 16px;
}
.box {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px 24px 24px;
}
.mark { display: block; margin-bottom: 14px; }
h1 { font-size: 20px; margin: 0 0 4px; }
.sub { color: var(--ink-2); margin: 0 0 20px; font-size: 14px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--plane);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 9px 12px;
  min-height: 42px;
}
button {
  width: 100%;
  margin-top: 14px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: default; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.error { color: var(--critical); font-size: 14px; margin: 12px 0 0; }
