/* The public signup page: the product's sign-in card, in two halves — the night
   (the brand) and the day (the form) — on the dark floor. The values are the
   product's (`index.css`: `.auth-night`, `.auth-day`), copied: this repository
   does not build the product. */
:root {
  --floor: #1f1f1e;
  --night: #171716;
  --night-ink: #f8f8f6;
  --night-faint: #97958c;
  --accent: #bf39a2;
  --day: #ffffff;
  --day-wash: #f4f4f1;
  --ink: #121212;
  --ink-muted: #373734;
  --ink-soft: #5c5a54;
  --ink-faint: #7b7974;
  --line: #e2e1da;
  --line-strong: #d4d3ca;
  --danger: #dc2626;
  --success: #059669;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 16px;
  background: var(--floor);
  font: 15px/1.5 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
.card {
  display: flex;
  width: 100%;
  max-width: 920px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}
.night {
  flex: 0 0 38%;
  background: var(--night);
  color: var(--night-ink);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.night img { width: 64px; height: 64px; }
.wordmark { font-weight: 800; letter-spacing: -0.04em; font-size: 40px; line-height: 1; }
.wordmark b { color: var(--accent); font-weight: 800; }
.night p { color: var(--night-faint); margin: 0; font-size: 15px; }
.day {
  flex: 1;
  background: var(--day);
  padding: 44px 48px;
  color-scheme: light;
}
h1 { font-size: 22px; margin: 0 0 24px; font-weight: 700; }
.field { margin-bottom: 16px; }
.pair { display: flex; gap: 12px; }
.pair .field { flex: 1; }
label { display: block; font-size: 13px; color: var(--ink-muted); margin-bottom: 5px; font-weight: 600; }
label .optional { color: var(--ink-faint); font-weight: 400; }
input, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--day);
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.address { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.address:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.address input { border: 0; border-radius: 0; outline: none; }
.address span { padding: 0 12px; color: var(--ink-faint); background: var(--day-wash); align-self: stretch; display: flex; align-items: center; white-space: nowrap; }
.status { font-size: 12px; margin-top: 5px; min-height: 18px; }
.status.ok { color: var(--success); }
.status.no, .error { color: var(--danger); }
.error { font-size: 12px; margin-top: 5px; }
.form-error { background: #fef2f2; color: var(--danger); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
button {
  margin-top: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: color-mix(in srgb, var(--accent) 82%, #000); }
.note { color: var(--ink-soft); font-size: 13px; margin-top: 14px; }
.preview { display: inline-block; font-size: 12px; color: var(--ink-soft); background: var(--day-wash); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
/* A field a person never sees: whatever fills it is not a person. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done p { color: var(--ink-muted); }
@media (max-width: 760px) {
  .card { flex-direction: column; }
  .night { padding: 32px 28px; }
  .day { padding: 32px 28px; }
  .pair { flex-direction: column; gap: 0; }
}

/* The language, at the foot of the brand half. */
.night .lang { margin-top: auto; }

/* The language: the product's `Segmented` (`ui/Segmented.jsx`: rounded-lg ·
   p-0.5 · gap-0.5 · text-xs; a capsule rounded-md · px-2.5 · py-1 · medium),
   in the DARK theme's values (`index.css`): the track is `--color-wash`, the lit
   capsule `--color-surface` with `--shadow-sm`, the others `--color-ink-muted`
   and `--color-hover` under the pointer. Copied: this repository does not build
   the product. */
.segmented { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 8px; background: #171716; font-size: 12px; line-height: 16px; }
.segmented a { padding: 4px 10px; border-radius: 6px; font-weight: 500; color: #c3c2b7; text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.segmented a:hover { background: #454440; }
.segmented a.on { background: #2c2c2a; color: #f8f8f6; box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4); }

/* The box of the trial terms (chantier 6): one tick, its links open beside the form. */
.terms { margin-top: 4px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink-muted); cursor: pointer; }
label.check input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--accent); }
.day a { color: var(--accent); }

/* Under every public page: the legal texts, on the floor, faint. */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 13px; }
.foot a { color: var(--night-faint); text-decoration: none; }
.foot a:hover { color: var(--night-ink); text-decoration: underline; }

/* A legal text: the card on its side — the brand as a band, the day as wide as
   a line of reading. */
.card.document { flex-direction: column; max-width: 760px; }
.night.band { flex: none; flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 28px; gap: 12px; }
.night.band .home { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.night.band img { width: 32px; height: 32px; }
.night.band .wordmark { font-size: 24px; }
.night.band .lang { margin-top: 0; }
.legal { max-width: 65ch; }
.legal h1 { font-size: 24px; margin: 0 0 6px; }
.legal h2 { font-size: 16px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-muted); font-size: 15px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal .meta { color: var(--ink-soft); font-size: 13px; margin-bottom: 18px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; font-size: 15px; }
.legal dt { color: var(--ink-soft); }
.legal dd { margin: 0; color: var(--ink-muted); }
.legal .appendix { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal [id] { scroll-margin-top: 16px; }
@media (max-width: 760px) {
  .night.band { padding: 16px 20px; }
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 8px; }
}
