/*
 * shell/login.css — the Fastrak client login page (MON-3151485197)
 *
 * Migrates Views/Account/LogOn.cshtml to the Fastrak_Login_2026 designs.
 *
 * The LIGHT variant ships (Fastrak_Login_Light_2026.png, Luke's call 18 Aug
 * 2026). Both were supplied; shipping both together would need a light/dark
 * token axis that does not exist (tokens.css's [data-theme] hook selects
 * PRODUCT, finio/fastrak, and both of those are light-surfaced), so one had to
 * be chosen.
 *
 * Choosing light also means the page background is the design pack's own
 * login-bgd.svg used WHOLE, byte-for-byte as supplied, with no derived asset:
 * that file carries the white circle grid and the lime/amber chain flourish in
 * one image, and white-on-pale is exactly the light mock's treatment. The dark
 * variant could not have used it — its grid samples DARKER than its canvas, so
 * a white-stroked grid was never what the dark mock was built on.
 *
 * Linked directly by TWO views — LogOn.cshtml and ForgottenPassword.cshtml --
 * and NOT imported by sprint-shell.css, because the unauthenticated layout does
 * not load the shell. Tokens DO resolve here (_UnauthenticatedSprint.cshtml
 * links tokens.css), so bare var() is fine, unlike shell/cookie-consent.css
 * which also has to render on the legacy layouts.
 *
 * ── WHY BOTH VIEWS SHARE IT ─────────────────────────────────────────────
 * Log on and Forgotten password sit either side of a link, so any difference
 * between them reads as a bug. Forgotten password started out with its own
 * inline copy of the card chrome; keeping the two in step then meant mirroring
 * card width, padding, field rhythm, field borders, link colour, logo sizing,
 * the Altcha treatment and the footer into that copy one change at a time,
 * which is a straight invitation for them to drift apart. They share this file
 * instead, and the parts that are genuinely page-specific are marked below.
 *
 * The remaining five account views (ChangePassword, Collect2FA, Maintenance,
 * QRCode, _SelectCompany) still carry their own inline copies. Those are left
 * alone on purpose: they are not in the 2026 design pack, and pulling them in
 * would restyle pages nobody has signed off. Since their rules are inline and
 * they do not link this file, the two cannot collide.
 *
 * Follow-up worth booking: bring those five in too, so the card chrome lives in
 * one place for the whole account set.
 *
 * ── ⚠ THE NUMBERS BELOW ARE NOMINAL, NOT WHAT RENDERS TODAY ─────────────
 * bootstrap.min.css (3.3.7) sets html{font-size:10px} and nothing in the sprint
 * sheets puts it back, so every rem-based token renders at 62.5% of its nominal
 * value on this page. --space-8 is 40px on screen, not 64px; --font-size-base is
 * 12.5px, not 20px; --font-size-sm is 10px, which is under the brand's 14px body
 * floor. This is the known root-font-size bug (see the note at
 * shell/setup-tabs.css:2805, which references rebrand-root-font-size-bug.md) and
 * it affects the whole rebranded app, not just these pages.
 *
 * Values here are deliberately expressed at their NOMINAL design size rather
 * than pre-divided to look right today: fixing the root font size then lands
 * this page on the mock exactly, where compensated values would all have to be
 * unwound. So the card padding below reads 64px and draws 40px — still a lift
 * from the 15px it drew before, but not yet the mock's 65px.
 *
 * ── MEASURED, NOT ESTIMATED ─────────────────────────────────────────────
 * Colours and geometry below were sampled from Fastrak_Login_2026.png rather
 * than eyeballed. Where a sampled value is off-token the comment says so and
 * gives the nearest token, so brand review has something concrete to argue
 * with. Geometry too: card padding and field spacing come from measured bands in
 * the mock, not from taste.
 *
 * One sampled value is deliberately NOT reproduced — the "Forgotten password"
 * link colour, noted inline, because the design's olive fails contrast on white.
 */

/* ------------------------------------------------------------- page canvas */

/*
 * The page canvas is NOT set here. It lives on `body` in
 * _UnauthenticatedSprint.cshtml so that Log on, Forgotten password and the rest
 * of the unauthenticated set share one background — including the chain
 * flourish, which login-bgd.svg carries. An earlier version overrode the
 * background on this page alone, which made the two pages either side of the
 * "Forgotten password" link look subtly different.
 */

/* ---------------------------------------------------------------- the card */

/*
 * 520px, up from the 400px the page shipped with. The mock's card is 525px on
 * a 1600px canvas, and it needs to be: tokens.css runs a FastraQ-local type
 * scale 1.25x the brand default (20px body, not 16px), which a 400px card
 * makes cramped.
 *
 * The sibling account pages are still 400px, so the card visibly narrows on
 * the walk from here to Forgotten password. Flagged rather than fixed — see
 * the follow-up at the top of this file.
 */
.login-card {
    width: 100%;
    max-width: 520px;

    /*
     * No border, shadow only. The card is white on a grey-50 canvas, which is
     * 1.07:1 — the edge itself is invisible and the shadow does all the
     * separating. That is what the mock does: scanning across its card edge
     * gives a soft ~7px falloff bottoming out at #E2E2E2 with no 1px line,
     * which is about what --shadow-md paints. .card's default grey-200 border
     * would draw an outline the design does not have.
     */
    border-color: transparent;
    box-shadow: var(--shadow-md);

    /*
     * Generous padding, measured off the mock rather than guessed: its card is
     * 524px wide with the fields inset to x=602..992, i.e. 65px of breathing
     * room each side, 37px above the logo and 46px below the button. .card's
     * default --space-5 (24px) left the fields looking crowded against the
     * edge. space-6/8/7 lands on 32/64/48.
     */
    padding: var(--space-6) var(--space-8) var(--space-7);

    /*
     * Links inside the card are Sprint olive in the design, not the Fastrak
     * amber that sprint-fastrak.css sets --color-link to. Sampled #758a58 =
     * --sprint-olive exactly, in BOTH variants, so it is the design pack
     * overriding the product theme on this page rather than a rounding error.
     *
     * Darkened to #5F7147 though: --sprint-olive on white measures 3.80:1 and
     * fails WCAG 1.4.3 for the "Forgotten password" link. #5F7147 is 5.33:1 and
     * near-indistinguishable at text size. Worth recording that BOTH candidates
     * fail — the Fastrak theme's own --color-link (#C68411) is 3.13:1 on white,
     * despite the comment in sprint-fastrak.css saying it was chosen because
     * plain amber failed. So this is an app-wide gap rather than something this
     * page introduced; flagged for Dan Moody, and the token fix belongs in its
     * own ticket.
     */
    --color-link: #5F7147;
    --color-link-hover: var(--sprint-charcoal);
}

/*
 * No divider. The page shipped with a border-bottom under the logo; a vertical
 * scan down the mock's card is unbroken white from the logo to the heading, so
 * the rule goes.
 */
.login-logo {
    text-align: center;
    margin-bottom: var(--space-5);
}

.login-logo img {
    max-height: 56px;   /* mock logo is 270x56 */
    width: auto;
    display: inline;
}

/* "Client login" — the page's h1. --font-size-lg is 25px on the FastraQ scale
   and the mock's heading measures ~26px. */
.login-heading {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin: 0 0 var(--space-4);   /* mock: 21px from heading to first label */
}

/* --------------------------------------------------------------- the form */

/*
 * Altcha widget theming. Held here rather than inline in each view so both
 * pages' "I'm not a robot" control is identical by construction. The widget
 * reads these custom properties itself; the container rules further down deal
 * with what the variables cannot reach.
 */
:root {
    --altcha-max-width: 100%;
    --altcha-color-base: var(--color-surface);
    --altcha-color-text: var(--color-text);
    --altcha-color-border: #D8E1A9;   /* the floating error arrow still uses this */
    --altcha-color-border-focus: var(--color-accent);
    --altcha-color-error-text: var(--color-danger);
    --altcha-border-radius: var(--radius-md);

    /* 0, so there is no box around "I'm not a robot" — the widget draws its
       border on .altcha from this, and the design has the checkbox and its label
       sitting bare on the card. */
    --altcha-border-width: 0;
}

/*
 * The mock leaves 27px between one field's input and the next field's label;
 * .form-field's shared --space-4 gave 22px. Scoped to the card so the rest of
 * the app's forms keep their own rhythm.
 */
.login-card .form-field {
    margin-bottom: var(--space-5);
}

/*
 * Pale lime field borders, sampled #d8e1a9 — --sprint-lime at ~50% over white.
 * Held in a custom property rather than repeated: it is a design-pack value
 * with no token behind it, so if brand review either promotes it to a token or
 * drops it back to --color-border, this is the single line that changes.
 */
.login-card .form-control {
    --login-field-border: #D8E1A9;
    border-color: var(--login-field-border);
}

/* Focus stays on --color-accent + the lime focus ring from sprint.css: the
   pale border is decorative and must not weaken the focus indicator. */

/*
 * "Forgotten password" moves out of the button row and becomes a text link
 * directly under the password field, per the design. It stays a <button
 * id="forgotten_link"> because Scripts/Account/login.js binds its click and
 * routes via ForgottenPassword() — turning it into an <a href> would break
 * that binding and lose the "enter a username first" guard.
 *
 * It sits INSIDE the password .form-field in the markup, which is what gets the
 * spacing right: the field is a flex column with a --space-2 gap, so the link
 * lands 8px under the input and --space-1 on top brings it to the mock's 12px.
 * The previous version sat outside the field and pulled itself up with a
 * negative margin, which had to be re-tuned every time the field spacing
 * changed. align-self keeps it hard left instead of stretching.
 */
.login-forgotten {
    align-self: flex-start;
    margin: var(--space-1) 0 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm);
    color: var(--color-link);
    cursor: pointer;
}

.login-forgotten:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/*
 * The Altcha proof-of-work widget renders its own checkbox labelled "I'm not a
 * robot", which is exactly the control the design draws — so it is restyled,
 * never replaced. Swapping it for a plain checkbox would drop a real
 * anti-automation control (and break FastraQ.E2ETests/Pages/LoginPage.cs,
 * which drives login by that accessible name and waits for "Verified").
 * Widget internals are themed through the --altcha-* variables in the view.
 */
#LogonAltchaContainer,
#ResetAltchaContainer {
    margin: var(--space-5) 0;
}

/*
 * No box around "I'm not a robot". The widget draws its own border on .altcha
 * from --altcha-border-width, so the view sets that to 0; what remains is
 * .altcha-main's own 0.7rem padding, which would leave the checkbox indented
 * ~11px from the field edge it is supposed to line up with. The mock has it
 * flush at x=602, the same as the inputs above it.
 *
 * Reaching inside the widget is safe here: altcha registers its custom element
 * with shadow DOM turned off, so its Svelte styles are class-scoped into the
 * document and an ID selector (0,1,0 plus the class) outranks them. Worth a
 * glance on a real page though — the local preview harness stubs the widget,
 * so this rule is the one part of the change a screenshot cannot confirm.
 */
#LogonAltchaContainer .altcha-main,
#ResetAltchaContainer .altcha-main {
    padding-inline: 0;
}

/* Full-width CTA — the mock's Login button spans the card. Sampled #b1c253,
   which is --sprint-lime = --color-cta, so .btn-primary already has the right
   fill and charcoal text; only the width changes. */
.login-submit {
    width: 100%;
}

/* 64px each side leaves too little measure once the viewport is narrow. */
@media (max-width: 560px) {
    .login-card {
        padding: var(--space-5);
    }
}

/* ------------------------------------ forgotten password: the button row */

/*
 * ForgottenPassword.cshtml only — Log on has no .login-actions row, its CTA is
 * the full-width .login-submit.
 *
 * Stacked rather than side by side: "Back to login" plus "Request new password"
 * need ~416px at the FastraQ 1.25x type scale and the card gives 392px, so both
 * labels broke mid-phrase. column-reverse puts the primary first (it is second
 * in the markup, which keeps the tab order sensible) and matches Log on's
 * full-width CTA.
 */
.login-actions {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.login-actions .btn {
    white-space: nowrap;
}

/* ------------------------------------------------------- the advert slot */

/*
 * LogOn.cshtml only — there is no advert slot on Forgotten password.
 *
 * Populated at runtime by Scripts/Account/login-ad.js, which Google Tag Manager
 * drives — see that file for the contract. Empty and occupying no space until
 * a creative arrives, which is the normal state: GTM is consent-gated by
 * Scripts/sprint-cookie-consent.js, so nothing renders here for a visitor who
 * has refused analytics cookies or not yet chosen.
 *
 * Layout deliberately does not reserve space for it. Collapsing rather than
 * holding an empty box means a visitor who never sees an advert sees a
 * balanced page, and the footer simply sits closer to the card.
 */
.login-ad {
    width: 100%;
    max-width: 520px;   /* tracks .login-card */
    margin-top: var(--space-3);
}

.login-ad:empty {
    display: none;
    margin-top: 0;
}

/*
 * The panel, rebuilt to the design pack's own banner geometry.
 *
 * Everything inside it is sized in PX, not tokens, and that is deliberate. This
 * is a fixed-width piece of creative that has to keep the proportions of the
 * supplied 526x101 banner, so it should not rescale with the root font size --
 * which matters twice over here, because the root-font-size bug noted at the top
 * of this file would otherwise render every token at 62.5% and shrink the whole
 * banner. Px keeps it correct both today and after that bug is fixed.
 *
 * Measured off login-banner.png (panel 526x101; ours is 520 wide, near enough
 * 1:1):
 *   icon        64x64, 20px from the left, vertically centred
 *   copy        starts at x=106, so a 22px gap after the icon
 *   heading     cap height 12px, lines 20px apart
 *   sub-line    ~13px, sitting 15px under the heading
 *   flow frame  rings from x=378 to the right edge, full height, bleeding off it
 *   arrow       32x32, inset 9px right and 11px bottom
 *
 * The heading is 16px, not the 17px its 12px cap height implies, and the copy
 * column is 310px (padding-right 104px). Both fall out of one measurement: the
 * design fits "Transact Contribution & Withdrawals" into 298px, but web Poppins
 * sets that same string at 327px at 17px and 308px at 16px. The mock's text is
 * simply tracked tighter than the web font, so the exact cap height and the
 * design's two-line wrap cannot both be had. The wrap wins — three lines grew
 * the panel to 109px and looked nothing like the banner — and 16px keeps the cap
 * within a pixel of the design.
 *
 * 310px lets the copy overlap the artwork's leftmost 18px, which the design does
 * far more of (its text runs to x=404 over rings starting at x=378). Checked
 * rather than assumed: those first 18 columns of the crop are ~85% charcoal, so
 * white text over them keeps its 12.63:1. The lime highlight is on line two,
 * which ends 48px clear of the artwork, so it never lands on a ring.
 *
 * Colour is unchanged: flat #333333 = --sprint-charcoal exactly, white copy at
 * 12.63:1 and the lime highlight at 6.44:1.
 */
.login-ad-panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 101px;
    padding: 12px 104px 12px 20px;
    border-radius: var(--radius-lg);
    background-color: var(--sprint-charcoal);
    color: var(--sprint-white);
    text-decoration: none;
}

/*
 * The flow frame on the right.
 *
 * Content/Images/login-flow-frame.png is the standalone asset the designer
 * supplied, byte-for-byte: the ring chain on a transparent ground in #1F8A8A and
 * #B1C253 exactly — --sprint-teal and --sprint-lime, no conversion needed.
 *
 * It replaces a crop taken out of the flattened login-banner.png, which had the
 * call-to-action arrow composited into it. Roughly half the pixels behind that
 * arrow were ring rather than flat charcoal, so the two could not be separated:
 * the arrow had to ship as part of the image, unable to be recoloured. With a
 * real asset they are independent again — the frame is decoration, the arrow
 * below it is a vector affordance.
 *
 * Transparent, so it composites over the panel fill instead of carrying a baked
 * charcoal, and it survives any future change to the panel colour.
 *
 * Sized by ring scale rather than by fitting the box. The frame's ring band is
 * 29px wide at native size against ~15px in the design banner, so it wants
 * roughly half size: 240px tall renders the band at ~13px. Most of that overflows
 * a 101px panel, which is the point — the design has the chain bleeding off the
 * edge, not sitting inside it.
 *
 * The negative offsets are what confine it to the right-hand strip. The asset is
 * the whole chain running diagonally from bottom-left to top-right, so anchoring
 * it plainly at `right center` dragged the middle of the chain across the copy —
 * rings sat on top of "intelliflo office". Pushing it 50px past the right edge
 * and 10px above the top leaves only its last few rings inside the panel, in the
 * ~148px strip the design gives them, and the arrow lands over a ring exactly as
 * the banner composites it. (In the four-value syntax an offset counts inward
 * from the named edge, so a negative one moves the image outward.)
 *
 * Painted whatever the panel's state, unlike the old crop: now the arrow is
 * separate this is pure decoration, and there is no reason a creative without a
 * link should lose the brand texture.
 */
.login-ad-panel {
    background-image: url('/Content/Images/login-flow-frame.png');
    background-repeat: no-repeat;
    background-position: right -50px top -10px;
    background-size: auto 240px;
}

/*
 * The call-to-action arrow: 32x32, inset 9px right and 11px bottom, both measured
 * off the design. Absolutely positioned, so it pins to the corner and sits over
 * the flow frame the way the design composites it, and so the copy column's width
 * does not depend on it.
 *
 * Only rendered when the panel is a link — login-ad.js omits the element rather
 * than drawing an arrow that goes nowhere.
 */
.login-ad-cta {
    position: absolute;
    right: 9px;
    bottom: 11px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--sprint-white);
    border-radius: var(--radius-pill);
    color: var(--sprint-white);
}

.login-ad-cta svg {
    width: 14px;
    height: 14px;
}

a.login-ad-panel:hover,
a.login-ad-panel:focus-visible {
    color: var(--sprint-white);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
}

a.login-ad-panel:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/*
 * The circular-arrows mark, also a crop from login-banner.png (x 20..83,
 * y 18..81). It replaces a hand-drawn SVG of two arcs and arrowheads that was
 * close in spirit but plainly not the same mark — the design's is a ring
 * enclosing two arrows, and there is no vector of it in the pack.
 *
 * Still a raster, so it will soften on a hi-DPI screen. The flow frame beside it
 * used to carry the same caveat and no longer does, now that the designer has
 * supplied it as a standalone asset; this mark is the remaining one to ask for.
 *
 * Painted from CSS keyed on a class, so login-ad.js still chooses between named
 * icons and never handles a file path.
 */
.login-ad-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
}

.login-ad-icon-cycle {
    background-image: url('/Content/Images/login-banner-icon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 64px 64px;
}

/*
 * Material icons for the advert, so a creative is not stuck with the design's
 * mark. A SUBSET, not the whole set — the app's self-hosted Material Symbols is
 * 3.96MB with font-display: block, about 40x the login page's entire asset
 * payload, which is indefensible on a pre-authentication page for one decorative
 * glyph. fonts/material-symbols-login-subset.woff2 holds 25 curated icons and is
 * 28.2KB, a 99.3% cut.
 *
 * Its own family name and font-display: swap, deliberately not the app's
 * "Material Symbols Outlined" at font-display: block: this is decoration, so it
 * must never hold up the panel, and sharing the family name would risk the full
 * font being pulled in by any rule that referenced it.
 *
 * Addressed by ligature, i.e. the element's text IS the icon name. Two things
 * follow. login-ad.js validates the name against the same 25 before setting it,
 * so an unlisted name can never render as raw letters — the classic failure of
 * ligature icon fonts. And the element carries aria-hidden, because otherwise a
 * screen reader announces the word "rocket_launch".
 *
 * The subset is rebuilt by the script recorded in docs/login-advert-gtm.md;
 * nothing at build time depends on it, the .woff2 is committed. Adding an icon
 * means rebuilding and deploying, so this is self-service for switching between
 * the 25, not for introducing new ones.
 */
@font-face {
    font-family: "Material Symbols Login";
    src: url('/Content/sprint/fonts/material-symbols-login-subset.woff2') format('woff2');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

.login-ad-icon-glyph {
    font-family: "Material Symbols Login";
    font-size: 56px;      /* inside the 64px box, matching the design mark's weight */
    line-height: 64px;
    text-align: center;
    color: var(--sprint-white);

    /*
     * These four are load-bearing, not boilerplate — each one can stop the
     * ligature matching and drop the panel back to rendering the icon's NAME.
     * Material's own .material-symbols class in shell/icons.css sets the same
     * for the same reason.
     *
     * text-transform especially: the font's letter glyphs are uppercase forms,
     * so a stray uppercase rule turns "campaign" into "CAMPAIGN", which matches
     * no ligature and renders as a giant word across the panel. That is exactly
     * what happened while building this.
     */
    text-transform: none;
    letter-spacing: normal;
    font-style: normal;
    font-weight: normal;

    /* The icon ligatures sit in rlig (required ligatures), which is on by
       default — liga would be the wrong feature to ask for. Named explicitly so
       nothing downstream turns ligatures off wholesale. */
    -webkit-font-feature-settings: "rlig";
    font-feature-settings: "rlig";
    font-variant-ligatures: normal;

    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.login-ad-copy {
    flex: 1 1 auto;
    min-width: 0;   /* lets long GTM copy wrap instead of forcing the panel wide */
}

.login-ad-heading {
    display: block;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    line-height: 20px;
}

/*
 * The emphasised phrase, sampled #b1c253 = --sprint-lime exactly.
 *
 * This is the deviation the dark variant could not avoid and light does not
 * have. On the dark mock's lime panel the same phrase is set in WHITE, which
 * measures 1.96:1 and fails WCAG 1.4.3 outright; it would have shipped as a
 * known failure for brand to rule on. Lime on charcoal is 6.44:1, so the light
 * variant carries the design's own emphasis with no compromise.
 *
 * Kept in a custom property regardless, for two reasons. The emphasis is still
 * colour alone; and lime as TEXT sits awkwardly with brand rule 1, which says
 * lime is the CTA colour and should not be used for body text. The design pack
 * asks for it here and it passes contrast at 6.44:1, so it ships — but it is a
 * deliberate reading of the rule rather than an obvious fit, and this is the one
 * line to change if Dan Moody would rather it were white (12.63:1) instead.
 */
.login-ad-highlight {
    --login-ad-highlight-color: var(--sprint-lime);
    color: var(--login-ad-highlight-color);
}

.login-ad-sub {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 19px;
}

/*
 * Narrow screens: the flow frame and the 104px its strip reserves cannot be
 * afforded once the panel is only a few hundred pixels wide, so both go and the
 * copy gets the room back. The icon stays — it is only 64px and it anchors the
 * panel. The arrow stays too: it is absolutely positioned, so it costs the copy
 * nothing.
 *
 * 480px, not the 560px used for the card. The panel is capped at 520px and the
 * body's side padding is small, so it still gets its full width well below 560 —
 * a breakpoint there stripped the frame off a panel that had ample room for it.
 * Below 480 the copy column (panel width minus 210px of icon, gaps and reserved
 * strip) drops under ~230px, which is where the strip stops being affordable.
 */
@media (max-width: 480px) {
    .login-ad-panel {
        padding: 12px 20px;
    }

    .login-ad-panel {
        background-image: none;
    }
}

/* ------------------------------------------------------------- page footer */

/*
 * The footer leaves the card. It shipped inside it (a bordered strip carrying
 * the copyright); the design puts the disclaimer, the Sprint logo, the
 * copyright and the policy links on the page background below the advert.
 */
.login-below {
    width: 100%;
    max-width: 520px;   /* tracks .login-card — the mock aligns the Sprint
                           logo's right edge with the card's right edge */
    margin-top: var(--space-5);
}

.login-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
}

/*
 * The private-computing-facility notice. Left-aligned in a row with the logo,
 * where it used to be centred under the card.
 *
 * Sampled #4b4b4b on the light mock; --sprint-grey-700 (#4A4A4A) is the token
 * and measures 8.27:1 on the grey-50 canvas. Note this INVERTS the dark mock's
 * hierarchy: there the notice was the dimmer of the two lines and the copyright
 * the brighter, whereas here the notice is the darker (more prominent) one. Both
 * are reproduced as sampled because both pass comfortably, so there was no call
 * to make — unlike the dark variant, where the notice's #747475 was 2.05:1 and
 * had to be overridden.
 *
 * The page's previous --sprint-grey-300 would now be 1.6:1 against a pale
 * canvas, i.e. all but invisible. The same fix was needed in
 * ForgottenPassword.cshtml and Maintenance.cshtml, which carry their own copies
 * of this rule and sit on the same layout.
 */
.login-disclaimer {
    flex: 1 1 auto;
    margin: 0;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-base);
    color: var(--sprint-grey-700);
}

.login-sprint-logo {
    flex: 0 0 auto;
}

/* POS variant (charcoal wordmark): this sits on the pale canvas, not on the
   card, and matches the design pack's own logo-sprint.svg. The NEG/white
   variant belongs to the dark mock. */
.login-sprint-logo img {
    height: 34px;
    width: auto;
    display: block;
}

/*
 * Copyright and the policy links. Sampled #575757 on the light mock, a step
 * LIGHTER than the notice above it; --sprint-grey-500 (#707070) is the nearest
 * token at 4.62:1 on the canvas, which clears 4.5:1.
 *
 * The mock puts a pipe between the copyright and "Privacy policy" and has only
 * those two items. We have three: MON-3151892226 added "Cookie preferences"
 * here as the consent-withdrawal control for visitors who never reach the app
 * footer, and it is a compliance requirement, not optional chrome. Three items
 * overflow 520px, so the row wraps — and a pipe between the copyright and the
 * links then stranded itself at the end of the first line. The separator
 * therefore sits only BETWEEN the two links (which always travel together),
 * and the copyright is set off by the flex gap instead. Wraps cleanly to two
 * lines on narrow viewports, no orphaned punctuation either way.
 */
.login-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    margin-top: var(--space-4);
    font-size: var(--font-size-xs);
    color: var(--sprint-grey-500);
}

.login-footer a,
.login-footer .fq-cc-manage-link {
    color: inherit;
}

/* Decorative — carries aria-hidden in the markup so it is not read out. */
.login-footer-sep {
    color: var(--sprint-grey-300);
}

@media (max-width: 620px) {
    .login-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
}

/*
 * ── DARK VARIANT ──────────────────────────────────────────
 * Fastrak_Login_2026.png was supplied alongside the light one and is not built.
 * Adding it is not a matter of a class here: tokens.css has no light/dark axis
 * at all (its [data-theme] hook selects PRODUCT, finio/fastrak, and both of
 * those are light-surfaced), so supporting both means new token infrastructure
 * reaching well beyond this page.
 *
 * Its differences from what is built, all measured, should that ticket be
 * raised:
 *   canvas        #454547 (nearest token --sprint-grey-700), and the grid comes
 *                 from the repo's FRAME_DARK.svg (#3f3f3f stroke), NOT from
 *                 login-bgd.svg, whose grid is white and belongs to the light
 *                 mock. Reusing the chain flourish on a dark canvas therefore
 *                 means cropping the chain out of login-bgd.svg into its own
 *                 asset, which is the main cost of that variant.
 *   advert panel  olive-to-lime gradient with charcoal copy, and the ramp has
 *                 to reach lime by ~34% rather than the mock's ~58% to hold
 *                 the sub-line above 4.5:1
 *   highlight     white in the mock, which is 1.96:1 on lime and fails
 *   notice        #747475 in the mock, 2.05:1 and fails; needs grey-200
 *   Sprint logo   Logo_Sprint_TM_NEG_UI.svg (white wordmark)
 */
