:root {
  --ink: #1a1a1a;
  --muted: #666;
  --line: #ddd;
  --accent: #c0432a;
  --bg: #f6f5f2;
  --card: #fff;
  --error: #b3261e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}

.card h1 {
  font-size: 20px;
  margin: 0 0 4px;
}

.card .lede {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14px;
}

label.field {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="date"], select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  margin: 0 0 16px;
  font-family: inherit;
}

button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid transparent;
}

button.primary {
  background: var(--ink);
  color: #fff;
  width: 100%;
}

button.primary:disabled {
  opacity: 0.6;
  cursor: default;
}

button.ghost {
  background: none;
  border-color: var(--line);
  color: var(--ink);
}

/* Link-as-button, for index.html's two entry points — kept separate from
   button.primary/.ghost (which style actual <button> elements) rather than
   sharing a selector, since an <a> needs display:block to accept width/
   padding the way a button does by default. */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  box-sizing: border-box;
  margin: 0 0 8px;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  background: none;
  border-color: var(--line);
  color: var(--ink);
}

.card.centered {
  text-align: center;
}

#google-button {
  width: 100%;
  margin: 0 0 4px;
}

.divider {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 16px;
}

.row {
  display: flex;
  gap: 8px;
}

.row button.primary { flex: 1; }

.error {
  color: var(--error);
  font-size: 13px;
  margin: -8px 0 16px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin: -12px 0 16px;
}

#step-done, #signed-in {
  text-align: center;
}

#step-done h2, #signed-in h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.switch-link {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 0;
}

.switch-link a {
  color: var(--ink);
  font-weight: 600;
}

#resend-block {
  text-align: center;
}

#resend-block .hint {
  margin: 12px 0 0;
}
