/* Colors from apps/mobile/src/theme/tokens.ts (background, surface, text, accent, danger). */
:root {
  --bg: #f6f2ec;
  --surface: #fffdf9;
  --text: #211d18;
  --muted: #62594f;
  --accent: #a6461f;
  --danger: #a4271d;
  --border: #e0d6c8;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main { max-width: 40rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
a { color: var(--accent); }
ul { padding-left: 1.25rem; }
p, li { color: var(--text); }

form, #done {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}
form h2, #done h2 { margin-top: 0; }

label { display: block; font-weight: 600; margin: 0.75rem 0 0.25rem; }
label.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
input[type="email"], input[type="password"] {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; }

.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1rem; }
button {
  min-height: 44px;
  padding: 0 1.25rem;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
button.danger { background: var(--danger); }
button.link { background: none; color: var(--accent); padding: 0 0.25rem; }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

#status { min-height: 1.5rem; margin-top: 1rem; color: var(--muted); }
#status.error { color: var(--danger); }
