/* login.html (5.14) - Colin's own instruction, 2026-09-29: "the only page
 * an unauthenticated person ever sees - including every partner and every
 * Apple reviewer... design first, then build." Design sketch published as
 * a Claude Artifact first (https://claude.ai/artifact/SheBkP8SwX3dy69rjxRoXA,
 * "design first" per that same instruction), reacted to, then built here
 * against the real design/tokens.json vars (via tokens.css, not the
 * sketch's own inlined copies of the same values - a real page reaches the
 * one source of truth directly) and the real self-hosted fonts (type.css;
 * the sketch's Google Fonts <link> was a sketch-only workaround, dropped
 * here - CLAUDE.md S7, no third-party dependency in the render path).
 *
 * A dedicated stylesheet rather than inline styles or a <style> block in
 * the template (no precedent for either elsewhere in vaultapp/templates/):
 * this is a real split-panel layout with a breakpoint, which a bag of
 * inline style="" attributes cannot express at all. Page-specific, one
 * consumer (login.html) - not added to components.css, which is reserved
 * for classes with more than one caller (S5's own convention).
 *
 * This page does not extend base.html. It is the one page with no sidebar
 * and no signed-in chrome (login.html's own prior comment already said
 * so) - the shared header/main shell exists to carry that chrome, and
 * this page has none to carry. csrf_field is a Jinja global (registered
 * on the environment, not scoped to base.html - vaultapp/web_templates.py),
 * so nothing about the real CSRF flow depends on the inheritance this page
 * no longer uses. */

* { box-sizing: border-box; }

/* BEGIN GENERATED BRAND-PANEL TOKENS - see website/generate_shared_css.py, do not edit by hand */
:root {
  --brand-panel-ink-text: #E7ECF5;
  --brand-panel-eyebrow: #9FB3D6;
  --brand-panel-emphasis: #8FB0FF;
  --brand-panel-sub: #B7C3DA;
  --brand-panel-pipeline-text: #C7D2E6;
  --brand-panel-pipeline-arrow: #6E85AD;
  --brand-panel-ring-strong: rgba(231, 236, 245, 0.14);
  --brand-panel-ring-soft: rgba(231, 236, 245, 0.10);
  --brand-panel-pipeline-border: rgba(231, 236, 245, 0.22);
  --brand-panel-thesis-max: 40px;
  --brand-panel-pipeline-margin-top: 32px;
  --brand-panel-thesis-mobile: 26px;
  --brand-panel-eyebrow-margin-top: 28px;
  --brand-panel-sub-font-size: 15px;
  --brand-panel-pipeline-font-size: 11.5px;
}
/* END GENERATED BRAND-PANEL TOKENS */

body.login-page {
  margin: 0;
  min-height: 100vh;
  background: var(--vault-color-page);
}

.login-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* ---------- Left: the brand / thesis panel ---------- */
.login-brand {
  background: var(--vault-color-ink);
  color: var(--brand-panel-ink-text);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
/* A single, quiet mark - not decoration for its own sake: the ring stands
 * for the record, unbroken as it moves club to club. */
.login-brand::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid var(--brand-panel-ring-strong);
}
.login-brand::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -160px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid var(--brand-panel-ring-soft);
}
/* Colin's own walkthrough finding, 2026-09-30: overlapping text on
 * login.html, reproduced at 861px (confirmed live via Playwright
 * screenshots across the whole split-panel width range, not assumed) -
 * this ring's fixed 320px size and -160px/-40px inset were sized against
 * the wide desktop panel (>=1000px, where there's ~230px of horizontal
 * clearance past the "Built for..." text) and never checked against the
 * split layout's own narrow end, where the panel itself shrinks to
 * ~440px and the same fixed-size ring's left edge lands inside that
 * text's own ~330px-wide block. Smaller and tucked further into the
 * corner specifically in that range - the wide-layout ring (still
 * unchanged below) already has real clearance and doesn't need it. */
@media (min-width: 861px) and (max-width: 1000px) {
  .login-brand::after {
    right: -30px;
    bottom: -50px;
    width: 140px;
    height: 140px;
  }
}
.login-brand__top, .login-brand__bottom, .login-brand__mid {
  position: relative;
  z-index: 1;
}

.login-wordmark {
  font-family: var(--vault-type-eyebrow-family);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--brand-panel-ink-text);
  text-decoration: none;
}

/* .eyebrow (type.css) is built for ink-faint text on a light surface -
 * this panel is dark, so the brand-panel eyebrow keeps the class's shape
 * (mono, uppercase, letterspaced) but overrides just the colour, same
 * pattern .banner--notice uses on its own eyebrow. */
.login-brand .eyebrow {
  color: var(--brand-panel-eyebrow);
  margin: var(--brand-panel-eyebrow-margin-top) 0 14px;
}

.login-thesis {
  font-family: var(--vault-type-page-title-family);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, var(--brand-panel-thesis-max));
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 18px;
  max-width: 15ch;
  color: var(--brand-panel-ink-text);
}
.login-thesis em {
  font-style: normal;
  color: var(--brand-panel-emphasis);
}
.login-thesis__sub {
  font-size: var(--brand-panel-sub-font-size);
  line-height: 1.6;
  color: var(--brand-panel-sub);
  max-width: 38ch;
  margin: 0;
}

.login-pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: var(--brand-panel-pipeline-margin-top);
  font-family: var(--vault-type-eyebrow-family);
  font-size: var(--brand-panel-pipeline-font-size);
  letter-spacing: 0.03em;
  color: var(--brand-panel-pipeline-text);
}
.login-pipeline__step {
  padding: 7px 12px;
  border: 1px solid var(--brand-panel-pipeline-border);
  border-radius: var(--vault-radius-pill);
  white-space: nowrap;
}
.login-pipeline__arrow {
  padding: 0 8px;
  color: var(--brand-panel-pipeline-arrow);
}

.login-brand__bottom p {
  font-size: 12.75px;
  line-height: 1.5;
  color: #8393B2;
  margin: 0;
  max-width: 40ch;
}

/* ---------- Right: the sign-in card ---------- */
.login-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.login-panel {
  width: 100%;
  max-width: 380px;
}
.login-panel__head {
  margin-bottom: 24px;
}
.login-panel h1 {
  margin: 0 0 8px;
}
.login-panel__lede {
  /* No line-height: the kit's :root carries 1.55 (2.290), and this element's
     own font-size is the 14px that unitless value multiplies, so declaring it
     here computed to exactly the same 21.7px. One of the twelve per-page
     copies; the other eleven are their own owners' and are listed in
     docs/FINDINGS.md. */
  font-size: 14px;
  color: var(--vault-color-ink-soft);
  margin: 0;
}

.login-card {
  margin-top: 22px;
}

.login-field {
  margin-bottom: 16px;
}
.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--vault-color-ink-muted);
  margin-bottom: 6px;
}
/* 2026-10-18: the border-color line removed here restated the base
 * input rule in components.css (this file loads after it, so equal
 * specificity meant source order let it win) - and restated the wrong
 * token, the same --vault-color-line mistake components.css's own
 * base rule and .field__control each made independently. Caught by
 * getComputedStyle on this exact page after fixing the base rule and
 * finding it unchanged here. This page's inputs are full-width like
 * every other stacked form (staff_lookup.html,
 * reset_password_landing.html), a layout decision each caller makes,
 * same as components.css's own input rule documents - colour is not
 * this page's decision to restate. */
.login-field input {
  width: 100%;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.login-below-card {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.login-below-card a {
  color: var(--vault-color-action);
  text-decoration: none;
  font-size: 13.5px;
}
.login-below-card a:hover {
  text-decoration: underline;
}
.login-footnote {
  color: var(--vault-color-ink-soft);
  margin: 0;
}

@media (max-width: 860px) {
  .login-frame {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .login-brand {
    padding: 32px 24px 36px;
  }
  .login-brand::before, .login-brand::after {
    display: none;
  }
  .login-brand__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .login-brand .eyebrow {
    margin: var(--brand-panel-eyebrow-margin-top) 0 10px;
  }
  .login-thesis {
    font-size: var(--brand-panel-thesis-mobile);
    max-width: none;
  }
  .login-thesis__sub {
    max-width: none;
  }
  .login-pipeline {
    display: none;
  }
  .login-brand__bottom {
    margin-top: 20px;
  }
  .login-stage {
    padding: 32px 20px 48px;
  }
}
