/* Form fields, checkboxes and buttons. */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--ink-dim); }
input[type="text"], input[type="email"], input[type="password"], select {
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--night-2);
  border: 0;
  box-shadow: inset 0 0 0 2px var(--field-line);
  padding: 12px;
  min-block-size: 48px;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* Marked by raffle.js after a submit attempt or on leaving an edited field; the error text says what's wrong. */
input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.9375rem; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); }
.check a { color: var(--teal); }
.form-error { margin: 0; color: var(--danger); font-size: 0.9375rem; }

.btn {
  font-family: var(--display);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-ink);
  background: var(--teal);
  border: 0;
  padding: 16px 18px 14px;
  box-shadow: 0 4px 0 var(--teal-d);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal-d); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:active { transform: translateY(2px); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row .btn { flex: 1 1 140px; display: flex; align-items: center; justify-content: center; }

/* Windows high contrast drops box-shadows, which draw every field and button border here. */
@media (forced-colors: active) {
  input[type="text"], input[type="email"], input[type="password"], select { border: 2px solid CanvasText; }
  input[aria-invalid="true"] { border-style: dashed; }
  .btn { border: 2px solid ButtonText; }
}
