/* PlacementFlow · Log in and Create account (approved 5 Nov 2026).
   The homepage's blue plane continues; the form is a white card on it whose
   height follows the form. Tokens are the live homepage's (public-site/home.css). Hooks that
   auth.js and login.html's session gate rely on keep their names:
   .lp-auth-card, .lp-auth-check, .lp-auth-failed, .auth-tab-shell, the radio
   pair, .pa #auth-message and every form id. */

:root {
  --font: "PlacementFlow Login", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --blue: #1768f2; --blue-hover: #0e57d8; --blue-press: #0b4ec4;
  --ink: #071426; --ink-2: #2b3b52; --muted: #55647a;
  --canvas: #f5f7fa; --rule: #e3e8ef;
  --field: #8592a5; --field-hover: #5d6b84; --placeholder: #647186;
  --danger: #c22f26; --ok: #137a40; --amber: #8a5208;
  --ring: rgba(23, 104, 242, .2);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --wrap: 1216px; --gutter: clamp(16px, 4vw, 40px); --nav-h: 64px;
  /* The statement is the homepage H1's scale and height tiers. Vertical
     rhythm is three height tiers so the whole Create account form, consent
     and action included, fits an ordinary laptop browser window with no
     page scroll: tall (above 760), laptop (681–760), short (up to 680).
     Below about 600 the page scrolls naturally; nothing is clipped. */
  --st: clamp(44px, 6.4vw, 92px);
  --sheet-w: clamp(440px, 38vw, 520px);
  --sheet-top: clamp(12px, calc((100svh - 780px) * .45), 56px);
  --sheet-px: clamp(32px, 3.3vw, 48px);
  --sheet-pt: 36px; --sheet-pb: 24px;
  --tabs-h: 48px; --tabs-mb: 24px;
  --field-h: 52px; --label-mb: 8px; --stack: 18px;
  --consent-mt: 20px; --btn-h: 54px; --btn-mt: 22px; --msg-mt: 14px;
  --kin: clamp(26px, 2.2vw, 32px);
}
@media (min-width: 960px) and (max-width: 1099px) { :root { --st: clamp(44px, 5.6vw, 92px); } }
@media (min-width: 960px) and (max-height: 760px) {
  :root {
    --st: clamp(40px, 5.4vw, 76px); --sheet-pt: 28px; --sheet-pb: 20px;
    --tabs-mb: 20px; --field-h: 48px; --label-mb: 6px; --stack: 14px;
    --consent-mt: 16px; --btn-h: 50px; --btn-mt: 18px; --msg-mt: 12px;
    --kin: clamp(24px, 2vw, 30px);
  }
}
@media (min-width: 960px) and (max-height: 680px) {
  :root {
    --nav-h: 56px; --st: clamp(38px, 4.8vw, 64px); --sheet-top: 8px; --sheet-pt: 22px; --sheet-pb: 10px;
    --tabs-h: 44px; --tabs-mb: 12px; --field-h: 44px; --stack: 12px;
    --consent-mt: 8px; --btn-h: 48px; --btn-mt: 12px; --msg-mt: 10px;
    --kin: clamp(22px, 1.8vw, 26px);
  }
}
@media (min-width: 960px) and (max-height: 620px) { :root { --kin: clamp(20px, 1.6vw, 22px); } }
@media (max-width: 959px) {
  :root { --nav-h: 56px; --st: clamp(34px, 9.4vw, 56px); --tabs-mb: 20px; --stack: 16px; --consent-mt: 18px; --btn-mt: 20px; }
}
@media (max-width: 959px) and (max-height: 700px) {
  :root { --st: clamp(32px, 8.6vw, 44px); --tabs-h: 44px; --tabs-mb: 16px; --field-h: 48px; --label-mb: 6px; --stack: 12px; --consent-mt: 14px; --btn-h: 50px; --btn-mt: 16px; --msg-mt: 12px; }
}

/* ---------------- base ---------------- */
:where(html) { -webkit-text-size-adjust: 100%; background: var(--blue); scrollbar-color: rgba(7, 20, 38, .32) transparent; }
:where(body) { margin: 0; min-height: 100svh; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--blue); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, p, ol, ul, fieldset, legend) { margin: 0; }
:where(ol, ul) { padding: 0; list-style: none; }
:where(fieldset) { border: 0; padding: 0; min-inline-size: 0; }
:where(legend) { padding: 0; }
:where(a) { color: inherit; text-decoration: none; }
:where(button) { font: inherit; color: inherit; }
:where(i) { font-style: normal; }
:where(svg) { display: inline-block; flex: none; }
::selection { background: rgba(23, 104, 242, .2); color: var(--ink); }
.pa-nav ::selection, .pa-intro ::selection { background: rgba(255, 255, 255, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.pa-nav :focus-visible, .pa-intro :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pa-wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------------- the mode: one source, the radio pair ----------------
   Before the radios are parsed, data-auth-mode (set in <head>) decides; from
   then on the checked radio does. */
html:not([data-auth-mode="signup"]) .pa:not(:has(#auth-tab-signup:checked)) [data-for="signup"],
html[data-auth-mode="signup"] [data-for="login"],
.pa:has(#auth-tab-signup:checked) [data-for="login"] { display: none; }
.pa [data-for].is-leaving { display: block !important; }

/* ---------------- nav: the homepage's bar, on the blue ---------------- */
.pa-nav { height: var(--nav-h); color: #fff; }
.pa-nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pa-logo { display: inline-flex; align-items: center; gap: 10px; border-radius: 8px; }
.pa-mark { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; background: #fff; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: -.02em; }
.pa-word { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.pa-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; margin-right: -12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; transition: background-color .15s; }
.pa-back svg { width: 16px; height: 16px; }
.pa-back:hover { background: rgba(255, 255, 255, .14); }

/* ---------------- the statement ---------------- */
.pa-intro { position: relative; color: #fff; }
.pa-st { position: relative; font-size: var(--st); line-height: .98; font-weight: 700; letter-spacing: -.03em; }
.pa-st-mode { display: block; }
.pa-st-mode.is-leaving { position: absolute; inset: 0 auto auto 0; }
.pa-l { display: block; white-space: nowrap; }
.pa-ledes { position: relative; margin-top: clamp(16px, 2.4vh, 26px); }
.pa-lede { max-width: 34ch; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; text-wrap: pretty; }
.pa-lede.is-leaving { position: absolute; inset: 0 0 auto 0; }
/* the discreet cue that this one door serves every role */
.pa-who { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.45; font-weight: 400; }

/* ---------------- the sheet ---------------- */
.pa-sheet { color: var(--ink); background: #fff; }
.pa-card { position: relative; }
.auth-tab-shell { position: relative; }

/* Log in | Create account: the homepage product's tab strip, as a radio pair */
.pa-tabs { position: relative; display: flex; gap: 28px; margin-bottom: var(--tabs-mb); box-shadow: inset 0 -1px 0 var(--rule); }
.pa-tab-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.pa-tab { position: relative; display: inline-flex; align-items: center; min-height: var(--tabs-h); font-size: 17px; font-weight: 600; letter-spacing: -.012em; color: var(--muted); cursor: pointer; transition: color .18s; -webkit-tap-highlight-color: transparent; }
.pa-tab:hover { color: var(--ink-2); }
.pa-tab-input:checked + .pa-tab { color: var(--ink); cursor: default; }
.pa-tab-input:focus-visible + .pa-tab::before { content: ""; position: absolute; inset: 6px -8px; border-radius: 8px; box-shadow: 0 0 0 2px var(--blue); }
.pa-tab-bar { position: absolute; left: 0; bottom: 0; width: var(--bar-w, 0); height: 2px; border-radius: 2px; background: var(--blue); transform: translateX(var(--bar-x, 0)); }
.pa-tabs.is-ready .pa-tab-bar { transition: transform .34s var(--ease-out), width .34s var(--ease-out); }
html:not(.pa-js) .pa-tab-input:checked + .pa-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); }

/* fields */
.pa-panels { position: relative; }
.pa-panel { display: block; }
.pa-panel.is-leaving { position: absolute; inset: 0 0 auto 0; }
.pa-field + .pa-field { margin-top: var(--stack); }
.pa-label { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
.pa-field > .pa-label { margin-bottom: var(--label-mb); }
.pa-field--pw { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label link" "control control" "caps caps"; column-gap: 12px; }
.pa-field--pw > .pa-label { grid-area: label; align-self: center; }
.pa-field--pw > .pa-control { grid-area: control; }
.pa-field--pw > .pa-link, .pa-field--pw > .pa-hint { grid-area: link; align-self: center; margin: 0 0 var(--label-mb); }
.pa-field--pw > .pa-caps { grid-area: caps; }
.pa-control { position: relative; }
.pa-input {
  box-sizing: border-box; display: block; width: 100%; height: var(--field-h); margin: 0; padding: 0 16px;
  border: 1px solid var(--field); border-radius: 12px; background: #fff;
  font: inherit; font-size: 17px; letter-spacing: -.005em; color: var(--ink); caret-color: var(--blue);
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.pa-input::placeholder { color: var(--placeholder); opacity: 1; }
.pa-input:hover { border-color: var(--field-hover); }
.pa-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 0 0 5px var(--ring); }
.pa-input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.pa-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--danger), 0 0 0 5px rgba(194, 47, 38, .16); }
.pa-input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 40px #eef4ff inset; }
.pa-input:-webkit-autofill:focus { box-shadow: 0 0 0 40px #eef4ff inset, 0 0 0 1px var(--blue), 0 0 0 5px var(--ring); }
.pa-input--pw { padding-right: 56px; }
.pa-input::-ms-reveal { display: none; }

/* show / hide password */
.pa-reveal { position: absolute; top: 50%; right: 6px; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background-color .15s; -webkit-tap-highlight-color: transparent; }
.pa-reveal::after { content: ""; position: absolute; inset: -2px -6px; }
.pa-reveal:hover { color: var(--ink); background: #eef2f8; }
.pa-reveal:focus-visible { outline-offset: -2px; }
.pa-reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pa-slash { stroke-dasharray: 19; stroke-dashoffset: 19; transition: stroke-dashoffset .22s var(--ease-out); }
.pa-reveal[aria-pressed="true"] .pa-slash { stroke-dashoffset: 0; }

/* text actions */
.pa-link { position: relative; padding: 2px 0; border: 0; background: none; font-size: 14.5px; font-weight: 600; color: var(--blue); cursor: pointer; border-radius: 4px; }
.pa-link::after { content: ""; position: absolute; inset: -8px -6px; }
.pa-link:hover { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pa-link[aria-disabled="true"] { color: var(--muted); pointer-events: none; }

/* hints under a field */
.pa-hint, .pa-caps { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.pa-hint::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .2s, box-shadow .2s; }
.pa-hint.is-met { color: var(--ok); }
.pa-hint.is-met::before { box-shadow: none; background: currentColor url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pa-field:has(.pa-input[aria-invalid="true"]) .pa-hint:not(.is-met) { color: var(--danger); }
.pa-hint--note { display: block; text-wrap: pretty; }
.pa-hint--note::before { display: none; }
.pa-caps { color: var(--amber); font-weight: 500; }
.pa-caps:empty { display: none; }

/* consent */
.pa-consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: var(--consent-mt); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.pa-consent input {
  width: 24px; height: 24px; margin: -1px 0 0; border: 1px solid var(--field); border-radius: 6px; background: #fff center / 14px no-repeat;
  -webkit-appearance: none; appearance: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .2s;
}
.pa-consent input:hover { border-color: var(--field-hover); }
.pa-consent input:checked { border-color: var(--blue); background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.2 7.3l2.6 2.6 5-5.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pa-consent input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pa-consent input.is-nudged { box-shadow: 0 0 0 5px var(--ring); border-color: var(--blue); }
.pa-consent a { font-weight: 600; color: var(--blue); text-decoration: underline; text-decoration-color: rgba(23, 104, 242, .35); text-underline-offset: 3px; }
.pa-consent a:hover { text-decoration-color: currentColor; }
.pa-consent-hint { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0 36px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.pa-consent-hint::before { content: ""; width: 14px; height: 14px; flex: none; margin-top: .12em; background: var(--blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M8 7.4v3.8' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='5' r='1' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M8 7.4v3.8' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='5' r='1' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; }
.pa-consent-hint:empty { display: none; }

/* A disabled button swallows taps; the gate around it hears them. */
.pa-btn-gate { display: block; }
.pa-btn-gate:has(#signup-btn:disabled) { cursor: not-allowed; }
.pa-btn-gate #signup-btn:disabled { pointer-events: none; }

/* the primary action: the homepage's button */
.pa-btn {
  box-sizing: border-box; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: var(--btn-h); margin-top: var(--btn-mt); padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--blue); color: #fff; font-size: 16.5px; font-weight: 600; letter-spacing: -.005em; cursor: pointer;
  box-shadow: 0 1px 2px rgba(7, 20, 38, .14), 0 10px 22px -14px rgba(23, 104, 242, .7);
  transition: background-color .15s, box-shadow .15s, transform .15s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.pa-btn:hover { background: var(--blue-hover); }
.pa-btn:active { background: var(--blue-press); transform: translateY(1px); }
.pa-btn:disabled { background: #e6ecf5; color: #55647a; box-shadow: none; cursor: not-allowed; transform: none; }
.pa-btn--fit { width: auto; margin: 0; padding: 0 22px; min-height: 46px; }
/* Busy, with auth.js unchanged: it sets aria-busy on Log in, and holds
   Create account disabled while the consent box is ticked. */
#login-btn[aria-busy="true"],
.pa:has(#signup-consent:checked) #signup-btn:disabled { background: var(--blue); color: #fff; cursor: progress; box-shadow: 0 1px 2px rgba(7, 20, 38, .14); }
#login-btn[aria-busy="true"]::before,
.pa:has(#signup-consent:checked) #signup-btn:disabled::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; box-sizing: border-box;
  animation: pa-spin .75s linear infinite;
}

/* The live region auth.js writes to. auth.js colours it inline (crimson for
   errors, green for confirmations, #657287 while working); the tone is read
   from that, so the controller needs no change. One line is reserved, so a
   one-line message (most of them) never moves the page. */
.pa #auth-message, .pa #auth-message:empty { display: flex; align-items: flex-start; gap: 8px; min-height: 1.45em; margin: var(--msg-mt) 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.pa #auth-message:not(:empty)::before { content: ""; width: 16px; height: 16px; flex: none; margin-top: .14em; background: currentColor; -webkit-mask: var(--msg-icon) center / contain no-repeat; mask: var(--msg-icon) center / contain no-repeat; }
.pa #auth-message { --msg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M8 4.8V8l2 1.4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pa #auth-message[style*="crimson"] { color: var(--danger) !important; --msg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M8 4.7v4' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.3' r='1' fill='%23000'/%3E%3C/svg%3E"); }
.pa #auth-message[style*="green"] { color: var(--ok) !important; --msg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M5.2 8.2l1.9 1.9 3.7-4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pa #auth-message[style*="101, 114, 135"], .pa #auth-message[style*="657287"] { color: var(--ink-2) !important; }
.pa #auth-message.is-new { animation: pa-rise .26s var(--ease-out); }
.pa #auth-message.is-stale { visibility: hidden; }
.pa-recover { margin-top: 6px; font-size: 14.5px; }
.pa-recover[hidden] { display: none; }

/* the other mode */
.pa-switches { position: relative; margin-top: 10px; }
.pa-switch { font-size: 15px; line-height: 1.5; color: var(--muted); }
.pa-switch.is-leaving { position: absolute; inset: 0 0 auto 0; }
.pa-switch-link { position: relative; padding: 2px 0; border: 0; background: none; font-weight: 600; color: var(--blue); cursor: pointer; border-radius: 4px; }
.pa-switch-link::after { content: ""; position: absolute; inset: -10px -8px; }
.pa-switch-link:hover { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* what an account opens: the homepage's route language. A filled stop for
   what opens now; a dashed line to a hollow stop for what waits on the
   medical school (dashed = not yet confirmed, as on the homepage). */
.pa-route { position: relative; display: grid; gap: 20px; max-width: 46ch; }
.pa-stop { position: relative; padding-left: 32px; }
.pa-dot { position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; }
.is-now .pa-dot { background: currentColor; }
.is-later .pa-dot { border: 2px solid currentColor; }
.is-now::after { content: ""; position: absolute; left: 5px; top: 22px; bottom: -24px; border-left: 2px dashed currentColor; }
.pa-stop-t { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; text-wrap: pretty; }
.pa-stop-m { margin-top: 3px; font-size: 15px; line-height: 1.45; text-wrap: pretty; }

/* small print */
.pa-legal { font-size: 13px; line-height: 1.55; color: var(--muted); background: #fff; }
.pa-legal p { text-wrap: pretty; }
.pa-legal-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 4px; }
.pa-legal-links a { display: inline-block; padding: 4px 0; font-weight: 500; color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(7, 20, 38, .25); text-underline-offset: 3px; }
.pa-legal-links a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------------- returning-session gate ----------------
   Same rules as login.html's inline gate (geometry kept, form hidden from
   focus and the accessibility tree), restyled for this sheet. */
html.pf-session-checking .lp-auth-card-head,
html.pf-session-checking .auth-tab-shell,
html.pf-session-checking .auth-sso-later,
html.pf-session-checking #auth-message,
html.pf-session-failed .lp-auth-card-head,
html.pf-session-failed .auth-tab-shell,
html.pf-session-failed .auth-sso-later,
html.pf-session-failed #auth-message { visibility: hidden !important; pointer-events: none !important; }
html:not(.pf-session-checking) .lp-auth-check { display: none; }
html:not(.pf-session-failed) .lp-auth-failed { display: none; }
.lp-auth-check, .lp-auth-failed { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 8px 32px; text-align: center; }
.lp-auth-check-mark { width: 24px; height: 24px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--blue); animation: pa-spin .75s linear infinite; }
.lp-auth-check-title, .lp-auth-failed-title { font-size: 18px; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }
.lp-auth-check-copy, .lp-auth-failed-copy { max-width: 34ch; font-size: 14.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.lp-auth-check-title { margin-top: 4px; }
.lp-auth-failed-title::before { content: ""; display: block; width: 36px; height: 36px; margin: 0 auto 14px; border-radius: 50%; background: #fdf0ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5.6v5.2' stroke='%23c22f26' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14' r='1.15' fill='%23c22f26'/%3E%3C/svg%3E") center / 20px no-repeat; }
.lp-auth-failed-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; margin-top: 8px; }
.lp-auth-failed-link { font-size: 14.5px; font-weight: 600; color: var(--blue); border-radius: 4px; }
.lp-auth-failed-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- desktop: the plane and the sheet side by side ---------------- */
@media (min-width: 960px) {
  .pa { min-height: 100svh; display: flex; flex-direction: column; }
  .pa-main {
    flex: 1; box-sizing: border-box; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
    display: grid; grid-template-columns: minmax(0, 1fr) var(--sheet-w); grid-template-rows: auto 1fr auto;
    column-gap: clamp(48px, 6vw, 112px);
  }
  .pa-intro { grid-column: 1; grid-row: 1; padding-top: calc(var(--sheet-top) + var(--sheet-pt) - .02em); }
  .pa-access, .pa-kin { grid-column: 1; grid-row: 2; align-self: start; margin-top: clamp(32px, 6vh, 64px); color: #fff; }
  /* The form is a card whose height follows its content: compact for Log
     in, taller for Create account. Its top never moves, so the tabs stay
     under the pointer; when the mode changes its height eases (auth-ui.js
     animates the fields between the tabs and the foot). The small print is
     the blue column's colophon, level with the page foot. */
  .pa-sheet {
    grid-column: 2; grid-row: 1 / 4; align-self: start; margin-top: var(--sheet-top);
    padding: var(--sheet-pt) var(--sheet-px) var(--sheet-pb); border-radius: 20px;
    box-shadow: 0 1px 2px rgba(7, 20, 38, .08), 0 32px 64px -28px rgba(7, 20, 38, .42);
  }
  .pa-legal { grid-column: 1; grid-row: 3; align-self: end; max-width: 46ch; padding: 32px 0 26px; background: none; color: #fff; }
  .pa-legal-links a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
  .pa-legal-links a:hover { color: #fff; text-decoration-color: #fff; }
  .pa-legal :focus-visible { outline-color: #fff; }
  .pa-legal ::selection { background: rgba(255, 255, 255, .3); color: #fff; }
}

/* the way to the other mode is the card's foot, close under the form */
@media (min-width: 600px) {
  .pa-switches { margin-top: 12px; padding-top: 14px; }
  .pa-switches::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); }
}

/* ---------------- tablet and phone: the plane on top, the sheet rising ---------------- */
@media (max-width: 959px) {
  html { background: linear-gradient(var(--blue) 50%, #fff 50%); }
  .pa { min-height: 100svh; display: flex; flex-direction: column; }
  .pa-main { flex: 1; display: flex; flex-direction: column; }
  .pa-intro, .pa-sheet, .pa-access, .pa-legal { box-sizing: border-box; width: 100%; padding-inline: var(--gutter); }
  .pa-intro { padding-top: clamp(12px, 3vh, 32px); padding-bottom: clamp(26px, 4.5vh, 40px); }
  .pa-lede { font-size: 17px; }
  .pa-sheet { border-radius: 20px 20px 0 0; padding-top: 14px; padding-bottom: 10px; }
  .pa-access { padding-top: 22px; padding-bottom: 6px; color: var(--ink); background: #fff; }
  .pa-access .pa-route { padding-top: 22px; border-top: 1px solid var(--rule); max-width: none; }
  .pa-access .pa-dot { color: var(--blue); }
  .pa-access .is-now::after { border-left-color: var(--blue); }
  .pa-access .pa-stop-t { font-size: 15.5px; }
  .pa-access .pa-stop-m { font-size: 14px; color: var(--muted); }
  .pa-legal { flex: 1; padding-top: 22px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
/* tablet: the sheet is an object on the blue again, centred, with the
   statement on its content edge */
@media (min-width: 600px) and (max-width: 959px) {
  :root { --col: min(640px, 100% - 2 * var(--gutter)); --col-pad: 44px; }
  .pa-nav-in { width: calc(var(--col) - 2 * var(--col-pad)); }
  .pa-intro { padding-inline: calc((100% - var(--col)) / 2 + var(--col-pad)); padding-top: clamp(20px, 3.5vh, 40px); padding-bottom: clamp(28px, 3.5vh, 36px); }
  .pa-sheet, .pa-access, .pa-legal { width: var(--col); margin-inline: auto; padding-inline: var(--col-pad); }
  html { background: var(--blue); }
  .pa-sheet { padding-top: 22px; padding-bottom: 20px; border-radius: 20px; box-shadow: 0 1px 2px rgba(7, 20, 38, .08), 0 32px 64px -28px rgba(7, 20, 38, .42); }
  .pa-access { padding-top: 28px; background: none; color: #fff; }
  .pa-access .pa-route { padding-top: 0; border-top: 0; }
  .pa-access .pa-dot, .pa-access .pa-stop-m { color: #fff; }
  .pa-access .is-now::after { border-left-color: #fff; }
  .pa-legal { display: flex; flex-direction: column; justify-content: flex-end; padding-top: 24px; background: none; color: #fff; }
  .pa-legal-links a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
  .pa-legal-links a:hover { color: #fff; text-decoration-color: #fff; }
  .pa-legal :focus-visible, .pa-access :focus-visible { outline-color: #fff; }
}
@media (max-width: 959px) and (max-height: 700px) {
  .pa-intro { padding-top: 10px; padding-bottom: 18px; }
  .pa-ledes { margin-top: 8px; }
  .pa-lede { font-size: 16px; }
  .pa-sheet { padding-top: 10px; padding-bottom: 4px; }
  .pa-legal { padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .pa-legal-links { margin-top: 0; }
  .pa-switches { margin-top: 6px; }
}
@media (max-width: 599px) {
  .pa-tabs { gap: 24px; }
  .pa-tab { font-size: 16.5px; }
}
/* short phones: Create account's process line gives way to the fields */
@media (max-width: 599px) and (max-height: 700px) {
  .pa:has(#auth-tab-signup:checked) .pa-ledes { display: none; }
}

/* ---------------- Log in: four lines, one focus (auth-kinetic.js) ----------------
   Under "Pick up where you left off." the blue carries the product's four
   rooms as type, set light. A focus walks down them once: each line in turn
   grows towards semibold along Plex's variable weight axis, and the focus
   comes to rest on "Your future." The weight is the only thing that moves,
   and it has settled within five seconds. Create account shows the access
   route in this place instead. The resting state is also the still
   composition (reduced motion, no script): the four lines light and the
   last semibold. */
@font-face {
  font-family: "PF Plex Variable"; font-style: normal; font-weight: 100 700; font-display: optional;
  src: url("/vendor/fonts/files/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYbSB4Zh.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.pa { position: relative; }
.pa-kin { color: #fff; }
.pa-kin-list { font-family: "PF Plex Variable", var(--font); font-size: var(--kin); line-height: 1.14; letter-spacing: -.022em; }
.pa-kin-i { width: max-content; font-weight: 300; }
.pa-kin-i:last-child { font-weight: 600; }
html.pa-motion .pa-kin-i:last-child { font-weight: 300; }
html.pa-motion .pa-kin.is-done .pa-kin-i:last-child { font-weight: 600; }
.pa-kin.is-done .pa-kin-i { transition: font-weight .3s var(--ease-out); }
.pa-kin ::selection { background: rgba(255, 255, 255, .3); color: #fff; }
@keyframes pa-kin-in { from { opacity: 0; translate: 0 .42em; } to { opacity: 1; translate: 0 0; } }

/* ---------------- motion: one authored moment, the mode switch ---------------- */
@keyframes pa-spin { to { transform: rotate(360deg); } }
@keyframes pa-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pa-line-in { from { opacity: 0; transform: translateY(.36em); } to { opacity: 1; transform: none; } }
@keyframes pa-line-out { to { opacity: 0; transform: translateY(-.22em); } }
@keyframes pa-out { to { opacity: 0; } }
@keyframes pa-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pa-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* first paint: the statement sets once; the form is there from the start */
  .pa-st-mode .pa-l { animation: pa-line-in .62s var(--ease-out) both; }
  .pa-st-mode .pa-l + .pa-l { animation-delay: .07s; }
  .pa.is-settled .pa-st-mode .pa-l { animation: none; }
  /* the four lines arrive just after the statement, one by one */
  html.pa-motion .pa-kin-i { animation: pa-kin-in .8s var(--ease-out) both; }
  html.pa-motion .pa-kin-i:nth-child(1) { animation-delay: .34s; }
  html.pa-motion .pa-kin-i:nth-child(2) { animation-delay: .44s; }
  html.pa-motion .pa-kin-i:nth-child(3) { animation-delay: .54s; }
  html.pa-motion .pa-kin-i:nth-child(4) { animation-delay: .64s; }
  html.pa-motion .pa-kin.is-settled .pa-kin-i { animation: none; }

  .pa.is-switching .pa-st-mode.is-leaving .pa-l { animation: pa-line-out .16s var(--ease-in) both; }
  .pa.is-switching .pa-st-mode.is-entering .pa-l { animation: pa-line-in .56s var(--ease-out) .17s both; }
  .pa.is-switching .pa-st-mode.is-entering .pa-l + .pa-l { animation-delay: .24s; }
  .pa.is-switching .is-leaving:is(.pa-lede, .pa-panel, .pa-switch, .pa-access, .pa-kin) { animation: pa-out .14s var(--ease-in) both; }
  .pa.is-switching .pa-kin.is-entering .pa-kin-i { animation: pa-kin-in .5s var(--ease-out) both; }
  .pa.is-switching .pa-kin.is-entering .pa-kin-i:nth-child(1) { animation-delay: .16s; }
  .pa.is-switching .pa-kin.is-entering .pa-kin-i:nth-child(2) { animation-delay: .22s; }
  .pa.is-switching .pa-kin.is-entering .pa-kin-i:nth-child(3) { animation-delay: .28s; }
  .pa.is-switching .pa-kin.is-entering .pa-kin-i:nth-child(4) { animation-delay: .34s; }
  .pa.is-switching .pa-lede.is-entering { animation: pa-rise .4s var(--ease-out) .2s both; }
  .pa.is-switching .pa-panel.is-entering { animation: pa-rise .32s var(--ease-out) .14s both; }
  .pa.is-switching .pa-switch.is-entering { animation: pa-rise .3s var(--ease-out) .14s both; }
  .pa.is-switching .pa-access.is-entering .pa-stop-t,
  .pa.is-switching .pa-access.is-entering .pa-stop-m { animation: pa-rise .4s var(--ease-out) both; }
  .pa.is-switching .pa-access.is-entering .is-now .pa-dot { animation: pa-pop .26s var(--ease-out) .2s both; }
  .pa.is-switching .pa-access.is-entering .is-now::after { animation: pa-draw .34s var(--ease-out) .32s both; }
  .pa.is-switching .pa-access.is-entering .is-later .pa-dot { animation: pa-pop .26s var(--ease-out) .6s both; }
  .pa.is-switching .pa-access.is-entering .is-now :is(.pa-stop-t, .pa-stop-m) { animation-delay: .22s; }
  .pa.is-switching .pa-access.is-entering .is-later :is(.pa-stop-t, .pa-stop-m) { animation-delay: .6s; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-auth-check-mark, #login-btn[aria-busy="true"]::before, .pa:has(#signup-consent:checked) #signup-btn:disabled::before { animation: none; }
  .pa-tabs.is-ready .pa-tab-bar, .pa-slash, .pa-input, .pa-btn { transition: none; }
  .pa #auth-message.is-new { animation: none; }
  .pa-kin.is-done .pa-kin-i { transition: none; }
}
/* phones and stacked tablets: the blue band holds only the statement */
@media (max-width: 959px) {
  .pa .pa-kin, .pa .pa-kin.is-leaving { display: none !important; }
}

/* ---------------- desktop height tiers: rule overrides ----------------
   Last in the file on purpose: earlier in the cascade they lost to the
   desktop rules of equal specificity. */
@media (min-width: 960px) and (max-height: 760px) {
  /* Log in has room: its fields and button keep their full size. Only
     Create account steps down so its consent and action fit. */
  .auth-panel-login { --field-h: 52px; --btn-h: 54px; --stack: 18px; --label-mb: 8px; --btn-mt: 22px; }
}
@media (min-width: 960px) and (max-height: 680px) {
  .pa-sheet { padding-bottom: 14px; }
  .pa-switches { margin-top: 8px; padding-top: 10px; }
  .pa-access, .pa-kin { margin-top: 28px; }
  .pa-legal { padding-top: 18px; padding-bottom: 18px; }
}
@media (max-width: 599px) { .pa-who { margin-top: 6px; font-size: 13.5px; } }
