/* =====================================================================
   /login — Editorial chrome for the magic-link / instant-signup form.
   Pairs with landing.css for shared tokens (--teal-deep, --ink, etc.)
   and Newsreader / Geist typography.
   ===================================================================== */

.auth-shell {
  padding: 64px 0 80px;
  background: var(--surface, #fbfaf6);
  min-height: calc(100vh - 80px - 220px); /* viewport minus nav minus footer */
}

.auth-grid {
  display: grid;
  /* Form card on LEFT (1fr — compact width), pitch on RIGHT (1.4fr —
   * room for headline + lede + bullets). Forced via `order` rules
   * below, NOT DOM order, because pre-translated cached HTML for
   * /{lang}/login still has the legacy DOM order (pitch-then-form)
   * and we don't want to wait for the hub to re-translate 14
   * languages just to flip visual position. CSS `order` works
   * identically on cached AND fresh DOM. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: center;
}
/* Visual order: form first (column 1, left), pitch second (column 2,
 * right). Applies on every viewport size — including mobile, where
 * the grid collapses to a single column and `order` controls stack
 * order. This keeps the form above the fold on phones. */
.auth-card-wrap { order: 1; }
.auth-pitch     { order: 2; }

/* ===== pitch column ===== */

.auth-pitch .eyebrow {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute, #5f6d62);
  background: var(--surface-2, #f5f1e8);
  padding: 5px 10px;
  border-radius: 99px;
  font-weight: 600;
  margin-bottom: 18px;
}

.auth-pitch h1 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink, #1a1a1a);
  margin: 0 0 22px;
}
.auth-pitch h1 em {
  font-style: italic;
  color: var(--teal-deep, #062a20);
  font-weight: 500;
}

.auth-pitch .lede {
  font-family: 'Newsreader', serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft, #3a4a40);
  max-width: 52ch;
  margin: 0 0 24px;
}

.host-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2, #f5f1e8);
  border: 1px solid var(--hairline, rgba(0,0,0,.06));
  border-radius: 99px;
  padding: 6px 14px;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--ink-soft, #3a4a40);
  margin-bottom: 36px;
}
.host-ribbon .dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--gold, #b08049);
}
.host-ribbon strong {
  color: var(--ink, #1a1a1a);
  font-weight: 600;
}

.auth-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 460px;
}
.auth-bullets li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.bullet-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  background: rgba(11, 61, 46, 0.10);
  color: var(--teal-deep, #062a20);
  margin-top: 3px;
}
.bullet-label {
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink, #1a1a1a);
  margin-bottom: 3px;
}
.bullet-body {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-mute, #5f6d62);
  margin: 0;
}

/* ===== form card ===== */

.auth-card-wrap {
  display: flex;
  /* Card sits at the LEFT edge of its column on desktop (since the
   * column is now on the left side of the grid), flush with the page
   * margin — visually anchors the primary action. On mobile, the
   * @media block below centers it. */
  justify-content: flex-start;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--hairline, rgba(0,0,0,.06));
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow:
    0 1px 2px rgba(11, 36, 25, 0.04),
    0 12px 32px -10px rgba(11, 36, 25, 0.10);
}

.auth-card-head {
  text-align: center;
  margin-bottom: 22px;
}
.auth-card-head .eyebrow {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute, #5f6d62);
  font-weight: 600;
  margin-bottom: 10px;
}
.auth-card-head h2 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink, #1a1a1a);
  margin: 0 0 8px;
}
.auth-card-head h2 em {
  font-style: italic;
  color: var(--teal-deep, #062a20);
}
.auth-card-head p {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 13.5px;
  color: var(--ink-mute, #5f6d62);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft, #3a4a40);
  margin-bottom: -8px; /* tighten to input */
}
.auth-input {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--hairline-2, rgba(0,0,0,.1));
  border-radius: 12px;
  background: var(--surface, #fbfaf6);
  color: var(--ink, #1a1a1a);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-input::placeholder {
  color: rgba(0,0,0,0.32);
}
.auth-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--teal-deep, #062a20);
  box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.14);
}

.btn-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 18px !important;
  min-height: 52px;
}

.auth-foot {
  margin: 4px 0 0;
  text-align: center;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-mute, #5f6d62);
}

/* Site footer styles live in landing.css (.site-foot + .bar + .disc).
 * login.php uses the shared includes/site_footer.php partial so it
 * inherits the canonical white-bg + flush hairline + 11px disclaimer.
 * The old `.foot-row` rules + cream-bg `.site-foot` override that
 * lived here are deleted — they made /login's footer render
 * inconsistently with / and /opp/*. */

/* ===== responsive ===== */

@media (max-width: 900px) {
  .auth-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .auth-card-wrap {
    justify-content: center;
  }
  .auth-card {
    max-width: 460px;
  }
}

@media (max-width: 600px) {
  .auth-shell {
    padding: 36px 0 48px;
  }
  .auth-pitch h1 {
    font-size: clamp(30px, 8vw, 40px);
  }
  .auth-pitch .lede {
    font-size: 17px;
  }
  .auth-card {
    padding: 26px 22px;
  }
  .foot-row {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .foot-row nav {
    justify-content: center;
  }
}
