/* The front door at chirprad.io.
 *
 * 1980s toy-line livery, stripped back: flat black and a hard raked wordmark.
 * The page has one job — get a pilot household signed in — so the wordmark is
 * a nameplate and the sign-in panel is the page.
 *
 * Single look on purpose, no dark-mode variant: it is already black.
 * No webfonts either. The CSP locks every source to 'self', so the wordmark is
 * built from weight, a skew and tight tracking rather than a font file.
 */

:root {
  --black: #000;
  --panel: #101114;
  --line: #26282d;
  --red: #c4352b;
  --white: #fff;
  --dim: #6f747c;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 40px 22px 46px;
}

.stack { width: 100%; max-width: 424px; }

/* ------------------------------------------------------------- nameplate --
 * Wordmark centred over the panel, with the tag under it. Both are skewed
 * from their own centre so the slant does not drag them off axis. */
.wordmark {
  margin: 0;
  text-align: center;
  font-size: clamp(52px, 15vw, 74px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--white);
  /* System faces have no true italic at 900 and the synthesised slant is too
   * timid for this, so the box itself is raked. */
  transform: skewX(-11deg);
  transform-origin: center;
}

.tag {
  margin: 10px 0 30px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* tracking pads the right edge; put it back on the left */
  text-transform: uppercase;
  color: var(--white);
  transform: skewX(-11deg);
  transform-origin: center;
}

/* ---------------------------------------------------------------- panel -- */
.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  padding: 24px 22px;
}

.kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-indent: 0.26em; /* tracking pads the right edge; put it back on the left */
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  background: #000;
  border: 2px solid #34383f;
  color: var(--white);
  font: inherit;
  font-size: 16px; /* 16px exactly, or iOS zooms the page on focus */
  padding: 11px 12px;
}

.field input:focus {
  outline: none;
  border-color: #6c727b;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

button.primary {
  width: 100%;
  margin-top: 8px;
  background: var(--red);
  color: var(--white);
  border: 2px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  padding: 14px;
  cursor: pointer;
  transition: transform 0.06s, background 0.12s;
}

button.primary:hover:not(:disabled) { background: #a82a21; }
button.primary:active:not(:disabled) { transform: translateY(2px); }
button.primary:disabled { opacity: 0.5; cursor: default; }

.error {
  background: rgba(196, 53, 43, 0.14);
  border: 2px solid var(--red);
  color: var(--white);
  padding: 10px 12px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
}

.hidden { display: none; }

/* --------------------------------------------------------------- footer -- */
footer {
  flex: 0 0 auto;
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3f4349;
}
