/* ─────────────────────────────────────────────────────────────────────────────
   WPC sign-in layout — ONE look for every password / account screen.

   Corey, 2026-10-14: "Can all of the password screens / account creation screens
   all use the main hero image login format/layout?" The reference is the WPC Hub
   admin sign-in (national-team photo, navy tint, product name over the photo,
   form on white). This file is that layout, made shareable:

     <div class="wa">
       <div class="wa__bg" aria-hidden="true"><img src="login-hero.jpg" alt=""></div>
       <div class="wa__inner">
         <div class="wa__top"> brand row (optional) · language toggle (optional) </div>
         <div class="wa__pitch"> eyebrow · <h1>product</h1> · lede </div>
         <main class="wa__panel"><div class="wa__card"> …the form… </div></main>
         <div class="wa__foot"> small print </div>
       </div>
     </div>

   MIRRORED: the same file lives in wpc-hub (assets/auth/wpc-auth.css) and in
   ncl-platform (css/wpc-auth.css). Change both, or they drift.

   Colours come from the WPC design system (wpc-design-system.css): navy #1D2951,
   red. The red used for the primary button is #D52B1E — white text on it is
   5.0:1 (AA for any size); the DS accent #E6202C is 4.4:1 and fails at 16px.
   Everything is prefixed wa- so it cannot collide with a page's own styles.
   ───────────────────────────────────────────────────────────────────────────── */
.wa {
  --wa-navy: #1D2951;
  --wa-navy-ink: #141d3b;
  --wa-red: #D52B1E;
  --wa-red-hover: #B3241A;
  --wa-red-tint: #FDEAEC;
  --wa-ink: #1B2230;
  --wa-ink-soft: #4A5568;          /* 7.4:1 on white */
  --wa-line: #CBD2DD;
  --wa-line-soft: #E4E8F0;
  --wa-mist: #F3F5F9;
  --wa-ok: #146C43; --wa-ok-bg: #E8F6EE; --wa-ok-line: #A7D7BC;
  --wa-bad: #A61B12; --wa-bad-bg: #FDEDEC; --wa-bad-line: #F1B0AA;
  --wa-font: "Cerebri Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wa-display: "League Spartan", "Cerebri Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100dvh;
  color: #fff; background: #0c1723;
  font-family: var(--wa-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wa *, .wa *::before, .wa *::after { box-sizing: border-box; }

/* The photo stays put while the card scrolls (long forms on a phone). It is an
   element, not background-attachment:fixed, which iOS ignores. */
.wa__bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0c1723; }
.wa__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
/* Two overlays doing different jobs: the multiply pulls the photo toward brand
   navy; the gradient darkens where the white type sits. */
.wa__bg::before { content: ""; position: absolute; inset: 0; background: var(--wa-navy); opacity: .55; mix-blend-mode: multiply; }
.wa__bg::after  { content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(9,11,15,.62), rgba(9,11,15,.18) 55%, rgba(9,11,15,.55)); }

.wa__inner {
  min-height: 100vh; min-height: 100dvh;
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  grid-template-rows: auto 1fr auto;
  column-gap: 72px; row-gap: 20px;
  padding: 34px 52px 28px;
}

/* ── top row: brand + language ─────────────────────────────────────────────── */
.wa__top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; min-height: 44px; }
.wa__brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.wa__brand img { height: 52px; width: auto; display: block; }
.wa__brand span { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.wa__top .wa__spacer { margin-left: auto; }

/* EN / FR. A real pair of buttons with aria-pressed, not a link that reloads. */
.wa-lang { display: inline-flex; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 2px; background: rgba(9,11,15,.25); }
.wa-lang button {
  font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #fff;
  background: transparent; border: 0; border-radius: 999px; padding: 6px 12px; min-width: 44px; min-height: 32px; cursor: pointer;
}
.wa-lang button[aria-pressed="true"] { background: #fff; color: var(--wa-navy); }
.wa-lang button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ── the words over the photo ──────────────────────────────────────────────── */
.wa__pitch { grid-column: 1; grid-row: 2; align-self: center; max-width: 620px; text-shadow: 0 1px 18px rgba(0,0,0,.25); }
.wa .wa__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .88; margin: 0 0 14px; }
.wa .wa__pitch h1 {
  font-family: var(--wa-display); font-weight: 800; font-size: 60px; line-height: 1.02;
  letter-spacing: -.01em; margin: 0 0 16px; color: #fff; text-wrap: balance;
}
.wa__pitch h1 .wa__rule { display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--wa-red); margin-top: 18px; }
.wa .wa__lede { font-size: 19px; line-height: 1.5; opacity: .92; margin: 0; max-width: 46ch; }
.wa__season { display: inline-block; margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 4px 11px; opacity: .9; }

/* ── the card ──────────────────────────────────────────────────────────────── */
.wa__panel { grid-column: 2; grid-row: 2; align-self: center; width: 100%; margin: 0; padding: 0; }
.wa__card {
  background: #fff; color: var(--wa-ink);
  border-radius: 16px; padding: 30px 30px 26px;
  box-shadow: 0 28px 70px rgba(4,9,24,.38), 0 2px 6px rgba(4,9,24,.18);
  text-align: left;
}
.wa__card-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.wa__card-head img { height: 54px; width: auto; flex: none; display: block; }
.wa__card-head .wa__prod { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--wa-red); line-height: 1.2; }
.wa__card-head .wa__prod small { display: block; color: var(--wa-ink-soft); letter-spacing: .02em; text-transform: none; font-weight: 600; font-size: 12.5px; margin-top: 2px; }
.wa .wa__card h2 { font-family: var(--wa-display); font-size: 25px; line-height: 1.15; font-weight: 800; color: var(--wa-navy); margin: 0 0 6px; letter-spacing: -.005em; }
.wa__card .wa-lead, .wa__card > p.wa-lead { font-size: 14.5px; line-height: 1.5; color: var(--wa-ink-soft); margin: 0 0 18px; }
.wa__card a:not(.wa-btn) { color: var(--wa-navy); font-weight: 700; text-underline-offset: 2px; }
.wa__card a:not(.wa-btn):hover { color: var(--wa-red-hover); }

.wa__foot { grid-column: 1 / -1; grid-row: 3; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.82); }
.wa__foot a { color: #fff; }

/* ── form controls inside the card ─────────────────────────────────────────── */
.wa-field { margin: 0 0 14px; }
.wa-field > label, .wa-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--wa-ink); margin: 0 0 6px; }
.wa__card .wa-input, .wa-field input[type="email"], .wa-field input[type="password"], .wa-field input[type="text"] {
  display: block; width: 100%; margin: 0;
  font: inherit; font-size: 16px;               /* 16px: iOS does not zoom the page on focus */
  color: var(--wa-ink); background: #fff;
  padding: 11px 13px; min-height: 46px;
  border: 1.5px solid var(--wa-line); border-radius: 10px;
  transition: border-color .12s, box-shadow .12s;
}
.wa__card .wa-input:focus, .wa-field input:focus { outline: none; border-color: var(--wa-navy); box-shadow: 0 0 0 3px rgba(29,41,81,.18); }
.wa-row { display: flex; gap: 8px; align-items: stretch; }
.wa-row > input { flex: 1; min-width: 0; }
.wa .wa-hint { font-size: 12.5px; color: var(--wa-ink-soft); margin-top: 5px; line-height: 1.45; }
.wa-link-btn { font: inherit; font-size: 13.5px; font-weight: 700; color: var(--wa-navy); background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.wa-link-btn:hover { color: var(--wa-red-hover); }
.wa-link-btn:focus-visible { outline: 3px solid var(--wa-navy); outline-offset: 2px; border-radius: 4px; }
.wa-end { display: flex; justify-content: flex-end; margin: -4px 0 12px; }

/* ── buttons ───────────────────────────────────────────────────────────────── */
.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; padding: 12px 18px; margin: 0;
  font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .01em; line-height: 1.2;
  border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color .14s, border-color .14s, color .14s, box-shadow .14s, transform .08s;
}
.wa-btn svg { width: 20px; height: 20px; flex: none; }
.wa-btn:focus-visible { outline: 3px solid var(--wa-navy); outline-offset: 3px; }
.wa-btn:active:not(:disabled) { transform: translateY(1px); }
.wa-btn:disabled, .wa-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.wa-btn--primary { background: var(--wa-red); color: #fff; box-shadow: 0 6px 16px rgba(213,43,30,.28); }
.wa-btn--primary:hover:not(:disabled) { background: var(--wa-red-hover); color: #fff; }
.wa-btn--navy { background: var(--wa-navy); color: #fff; }
.wa-btn--navy:hover:not(:disabled) { background: var(--wa-navy-ink); color: #fff; }
.wa-btn--secondary { background: #fff; color: var(--wa-navy); border-color: var(--wa-line); }
.wa-btn--secondary:hover:not(:disabled) { background: var(--wa-mist); border-color: var(--wa-navy); color: var(--wa-navy); }
.wa-btn--quiet { background: transparent; color: var(--wa-ink-soft); font-weight: 700; font-size: 14px; min-height: 40px; width: auto; padding: 8px 10px; margin: 8px auto 0; }
.wa-btn--quiet:hover:not(:disabled) { color: var(--wa-navy); background: var(--wa-mist); }
.wa-btn + .wa-btn { margin-top: 10px; }
.wa-btn .wa-spin, .wa-spin {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; opacity: .85;
  animation: wa-spin .7s linear infinite; flex: none;
}
.wa-btn[aria-busy="true"] { cursor: progress; }
@keyframes wa-spin { to { transform: rotate(360deg); } }

/* <a> used as a button: beat a page's own link colours (e.g. the DS's `.wpc a`). */
.wa a.wa-btn { text-decoration: none; }
.wa a.wa-btn--primary, .wa a.wa-btn--primary:hover, .wa a.wa-btn--navy, .wa a.wa-btn--navy:hover { color: #fff; }
.wa a.wa-btn--secondary, .wa a.wa-btn--secondary:hover { color: var(--wa-navy); }
.wa a.wa-link-btn { color: var(--wa-navy); }
.wa a.wa-link-btn:hover { color: var(--wa-red-hover); }

/* "or" rule between the My WPC button and the other ways in. */
.wa-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--wa-ink-soft); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.wa-or::before, .wa-or::after { content: ""; flex: 1; height: 1px; background: var(--wa-line-soft); }

/* Segmented choice: Password | Email me a link. role=tablist, arrow keys. */
.wa-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 0 0 16px;
  background: var(--wa-mist); border: 1px solid var(--wa-line-soft); border-radius: 12px; }
.wa-seg button {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--wa-ink-soft);
  background: transparent; border: 0; border-radius: 9px; min-height: 40px; padding: 8px 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.wa-seg button svg { width: 16px; height: 16px; flex: none; }
.wa-seg button:hover { color: var(--wa-navy); }
.wa-seg button[aria-selected="true"] { background: #fff; color: var(--wa-navy); box-shadow: 0 1px 3px rgba(16,24,40,.14); }
.wa-seg button:focus-visible { outline: 3px solid var(--wa-navy); outline-offset: 1px; }

/* ── messages ──────────────────────────────────────────────────────────────── */
.wa-alert { border-radius: 10px; padding: 11px 13px; font-size: 14px; line-height: 1.5; margin: 0 0 14px; border: 1px solid; }
.wa-alert--error { background: var(--wa-bad-bg); border-color: var(--wa-bad-line); color: var(--wa-bad); }
.wa-alert--ok    { background: var(--wa-ok-bg); border-color: var(--wa-ok-line); color: var(--wa-ok); }
.wa-alert--info  { background: var(--wa-mist); border-color: var(--wa-line-soft); color: var(--wa-navy); }
.wa-alert strong { display: block; margin-bottom: 2px; }

.wa-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.wa-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--wa-ink-soft); line-height: 1.45; }
.wa-steps .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--wa-mist); color: var(--wa-navy);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.wa .wa-small { font-size: 12.5px; color: var(--wa-ink-soft); line-height: 1.5; }
.wa-divide { border: 0; border-top: 1px solid var(--wa-line-soft); margin: 18px 0 14px; }

/* Labels, buttons and kickers in the display face. The body face (Cerebri Sans Pro) ships
   only weight 400 on these sites, so "bold" on it renders as regular — League Spartan has
   real 700/800 and keeps buttons and labels reading as buttons and labels. */
.wa-btn, .wa-seg button, .wa-field > label, .wa-label, .wa-link-btn, .wa-or,
.wa__card-head .wa__prod, .wa__eyebrow, .wa__season, .wa-lang button, .wa-alert strong { font-family: var(--wa-display); }
.wa-btn { letter-spacing: .005em; }

/* ── phones ────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wa__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; align-content: center; row-gap: 18px; padding: 18px 16px 24px; }
  .wa__pitch, .wa__panel, .wa__foot { grid-column: 1; }
  .wa__pitch { grid-row: 2; padding: 6px 2px 0; }
  .wa__panel { grid-row: 3; max-width: 480px; margin: 0 auto; }
  .wa__foot  { grid-row: 4; text-align: center; max-width: 480px; margin: 0 auto; }
  .wa .wa__pitch h1 { font-size: 38px; margin-bottom: 8px; }
  .wa__pitch h1 .wa__rule { margin-top: 12px; width: 44px; }
  .wa .wa__lede { font-size: 15.5px; }
  .wa__season { margin-top: 12px; }
  .wa__brand img { height: 42px; }
}
@media (max-width: 420px) {
  .wa__card { padding: 22px 18px 20px; border-radius: 14px; }
  .wa .wa__card h2 { font-size: 22px; }
  .wa .wa__pitch h1 { font-size: 32px; }
  .wa .wa__lede { display: none; }                   /* the card says what to do; keep the form above the fold */
  .wa__brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-btn, .wa-spin, .wa-btn .wa-spin { transition: none; animation-duration: 2s; } }
@media print { .wa__bg { display: none; } .wa { background: #fff; color: #000; } }
