/* Shared presentation for password sign-in and its MFA step. */
.auth-signin-feedback{position:fixed;z-index:1100;top:7.2rem;right:2.4rem;width:min(48rem,calc(100vw - 32px));opacity:1;transform:translateY(-6px);transition:opacity 200ms ease-out,transform 220ms ease-out}
.auth-signin-feedback .message{margin:0}
#page-feedback.auth-signin-feedback:focus,#page-feedback.auth-signin-feedback:focus-visible{outline:none!important;box-shadow:none!important}
.auth-signin-feedback.is-entering{opacity:0}
.auth-signin-feedback.is-visible{opacity:1;transform:translateY(0)}
.auth-signin-feedback.is-leaving{opacity:0;transform:translateY(8px);pointer-events:none}
.auth-signin-feedback[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.auth-signin-feedback{transition:none;transform:none}.auth-signin-feedback.is-leaving{transform:none}}
body .auth-login.auth-signin .auth-form-panel{display:flex;align-items:center;justify-content:center;padding-block:3.2rem}
body .auth-login.auth-signin .auth-form-card{width:100%;max-width:52rem;padding:3.2rem;border:1px solid var(--ui-line);border-radius:1.6rem;background:var(--ui-surface);color:var(--ui-text);box-shadow:0 1.2rem 3.2rem #17352a14}
body .auth-signin .auth-form-heading{margin-bottom:2.4rem}
body .auth-signin .auth-form-heading h2{margin:0;color:var(--button-primary);font-size:3.2rem;font-weight:700;line-height:1.2;letter-spacing:-.025em}
body .auth-signin .auth-form-heading .section-eyebrow{font-size:1.2rem;line-height:1.5;margin:0 0 .8rem;color:var(--button-primary)}
body .auth-signin .auth-form-heading p:not(.section-eyebrow){font-size:1.6rem;line-height:1.5;margin:1.2rem 0 0;color:var(--ui-muted)}
body .auth-signin .auth-form label{font-size:1.6rem;font-weight:600;line-height:1.5;margin-bottom:.8rem;color:var(--ui-text)}
body .auth-signin .auth-form input{height:4.8rem;min-height:4.8rem;font-size:1.6rem;line-height:1.5;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--button-border);border-radius:1rem;margin-bottom:0}
body .auth-signin .auth-form .input{margin-bottom:2rem}
body .auth-signin .password-control{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;margin-bottom:0}
body .auth-signin .password-control>.input{display:contents}
body .auth-signin .password-control>.input>label{grid-column:1 / -1;grid-row:1}
body .auth-signin .password-control>.input>input{grid-column:1 / -1;grid-row:2}
body .auth-signin .password-control>.input>:is(.error-message,.invalid-feedback,.valid-feedback){grid-column:1 / -1}
body .auth-signin .password-control input{padding-right:15.6rem!important}
body .auth-signin .password-control .password-toggle{position:relative;grid-column:2;grid-row:2;align-self:stretch;top:auto;bottom:auto;right:.4rem;display:flex;align-items:center;justify-content:center;width:auto;max-width:14.8rem;height:4.8rem;min-height:4.4rem;margin:0;padding:.4rem .8rem;font-size:1.4rem;font-weight:600;line-height:1.3;background:transparent;transform:none;color:var(--button-text)}
body .auth-signin .auth-password-help{display:flex;justify-content:flex-end;margin:.8rem 0 2rem;font-size:1.4rem;line-height:1.5}
body .auth-signin :is(.auth-password-help,.auth-registration,.auth-privacy) a{color:var(--button-text);text-underline-offset:.25em;font-weight:600}
body .auth-signin .auth-submit{width:100%;min-height:4.8rem;margin:0;font-size:1.6rem;font-weight:600;line-height:1.5;border-radius:1rem;box-shadow:none;transform:none}
body .auth-signin .auth-registration{margin:2rem 0 0;font-size:1.4rem;line-height:1.6;text-align:center;color:var(--ui-muted)}
body .auth-signin .auth-privacy{border-top:1px solid var(--ui-line);padding-top:1.2rem;margin-top:2rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem 1.6rem;font-size:1.3rem;line-height:1.5}
body .auth-signin .auth-privacy a{font-weight:400;color:var(--ui-muted)}
body .auth-signin .auth-privacy a{display:inline-flex;align-items:center;min-height:4.4rem}
body .auth-signin .auth-privacy button{min-height:4.4rem;height:auto;padding:.4rem 0;margin:0;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--ui-muted)!important;font-size:1.3rem;font-weight:400;line-height:1.5;letter-spacing:normal;text-transform:none;text-decoration:underline;text-underline-offset:.25em}
body .auth-signin .auth-form-note{font-size:1.4rem;line-height:1.5;color:var(--ui-muted);margin:1.6rem 0 0;padding:0;border:0;text-align:left}
body .auth-signin .mfa-details{margin-top:2rem;padding-top:1.6rem;border-color:var(--ui-line)}
body .auth-signin .mfa-details summary{font-size:1.6rem;font-weight:600;line-height:1.5;color:var(--button-text)}
body .auth-signin .mfa-details p{font-size:1.6rem;line-height:1.5;color:var(--ui-muted)}
body .auth-signin .auth-intro h1{font-size:4.4rem;line-height:1.12;letter-spacing:-.035em}
body .auth-signin .auth-intro > .auth-intro-content > p:not(.auth-kicker){font-size:1.8rem;line-height:1.6}
body .auth-signin .auth-kicker{font-size:1.3rem;line-height:1.5}
body .auth-signin .auth-intro-points{font-size:1.5rem;line-height:1.5;gap:1rem;margin-top:2.4rem}
body .auth-signin .auth-inline-back .page-back-icon svg{display:block;flex-shrink:0}
body .auth-signin .auth-captcha:has(.cf-turnstile){position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;margin:0 0 2rem;padding:0;gap:1rem;border:0;border-radius:0;background:transparent;box-shadow:none}
body .auth-signin .auth-captcha .cf-turnstile{flex:0 1 300px;max-width:100%;min-width:0}
body .auth-signin .auth-captcha .turnstile-status{flex-basis:100%;margin:0}
body .auth-signin .auth-captcha:is([data-security-state='loading'],[data-security-state='success']) .turnstile-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body .auth-signin .turnstile-status{font-size:1.4rem;line-height:1.5}
body .auth-signin .turnstile-retry[hidden]{display:none!important}
@media(max-width:900px){
    body .auth-login.auth-signin .auth-form-panel{padding:2.4rem 1.6rem 3.2rem}
    body .auth-signin .auth-intro{min-height:0;padding:8rem 2.4rem 3.2rem}
    body .auth-signin .auth-intro h1{font-size:3.2rem;max-width:46rem}
    body .auth-signin .auth-intro > .auth-intro-content > p:not(.auth-kicker){font-size:1.6rem;margin:0;max-width:46rem}
    body .auth-signin .auth-intro-points{display:none}
}
@media(max-width:600px){
    body .auth-login.auth-signin .auth-form-card{padding:2.4rem 2rem}
    body .auth-signin .auth-form-heading h2{font-size:2.8rem}
    body .auth-signin .auth-registration a{display:inline-block}
}
html[data-high-contrast='1'] body .auth-signin .auth-form-card{border-color:var(--ui-text)}
html[data-high-contrast='1'] body .auth-signin :is(.auth-privacy a,.auth-registration,.auth-form-note){color:var(--ui-text)}
/* Fit the ordinary sign-in card into shorter viewports without shrinking text. */
@media(max-height:820px) and (min-width:901px), (max-width:600px){
    body .auth-login.auth-signin .auth-form-panel{padding-block:1.6rem}
    body .auth-login.auth-signin .auth-form-card{padding-block:2.4rem}
    body .auth-signin .auth-form-heading{margin-bottom:1.6rem}
    body .auth-signin .auth-form label{margin-bottom:.6rem}
    body .auth-signin .auth-form .input{margin-bottom:1.6rem}
    body .auth-signin .password-control .input{margin-bottom:0}
    body .auth-signin .auth-password-help{margin:.6rem 0 1.2rem}
    body .auth-signin .auth-captcha:has(.cf-turnstile){margin-bottom:1.2rem}
    body .auth-signin .auth-registration{margin-top:1.2rem}
    body .auth-signin .auth-privacy{margin-top:1.2rem;padding-top:.8rem}
}
@media(max-width:600px){
    body .auth-signin .auth-intro{padding:7.2rem 2.4rem 2rem}
    body .auth-signin .auth-intro h1{font-size:2.8rem;line-height:1.2;margin:0;max-width:30rem}
    body .auth-signin .auth-intro-content > p{display:none}
}

/* Keep recovery help beside the password rather than above the form. */
body .auth-signin .auth-password-help-limited{align-items:flex-start;justify-content:space-between;gap:.8rem 1.6rem;text-align:left}
body .auth-signin .auth-reset-hint{margin:0;font-size:1.4rem;font-weight:400;line-height:1.5;color:var(--ui-muted)}
body .auth-signin .auth-reset-hint span{display:block;margin-top:.2rem}
body .auth-signin .auth-password-help-limited a{flex-shrink:0;line-height:1.5}
@media(max-width:600px){body .auth-signin .auth-password-help-limited{flex-wrap:wrap;gap:.4rem 1.2rem}}

/* Reuse the setup page's six-slot authenticator input in the sign-in card. */
body .auth-signin .mfa-code-entry{width:100%;margin-bottom:1.6rem}
body .auth-signin .mfa-code-entry.is-enhanced input{position:absolute;inset:0;width:100%;height:52px;min-height:0;margin:0;opacity:0;z-index:1;cursor:text}
@media(max-width:760px){body .auth-signin .mfa-code-entry.is-enhanced input{height:48px}}

/* Keep artwork framing independent of expanding recovery forms. */
@media(min-width:901px){
    body .auth-login.auth-signin{background-attachment:fixed;background-position:center top;background-size:cover;background-repeat:no-repeat}
}
/* Mobile artwork stays in its fixed-height intro; the long form uses a calm surface. */
@media(max-width:900px){
    body .auth-login.auth-signin{background-image:none;background-color:var(--ui-background,#f5faf7)}
    body .auth-signin .auth-intro{background-image:linear-gradient(90deg,rgba(3,50,33,.5),rgba(3,50,33,.08)),url('../img/login-hero-background-v2.webp');background-size:cover;background-position:left center}
}

html:has(.auth-signin){scrollbar-gutter:stable}

/* Fill the exact space below navigation and anchor the intro to that viewport. */
body .auth-login.auth-signin{min-height:calc(100svh - var(--auth-nav-height,5.2rem))}
@media(min-width:901px){
    body .auth-signin .auth-intro{align-self:start;height:calc(100svh - var(--auth-nav-height,5.2rem));min-height:54rem;box-sizing:border-box;padding-block:4.8rem;align-items:center}
}

/* A quieter, more readable welcome area. */
body .auth-signin .auth-kicker{font-size:1.3rem;line-height:1.5;letter-spacing:.1em;margin-bottom:1.6rem}
body .auth-signin .auth-intro h1{line-height:1.15;letter-spacing:-.025em;margin-bottom:2rem}
body .auth-signin .auth-intro > .auth-intro-content > p:not(.auth-kicker){font-size:1.8rem;line-height:1.5;max-width:44rem;color:#f1f6f3}
body .auth-signin .auth-intro-points{font-size:1.6rem;line-height:1.5;font-weight:500;gap:1.2rem;margin-top:2.4rem}
@media(min-width:901px){body .auth-signin .auth-intro{background:linear-gradient(90deg,rgba(3,42,28,.48),rgba(3,42,28,.25) 75%,rgba(3,42,28,0))}}
@media(max-width:600px){body .auth-signin .auth-intro h1{margin-bottom:0}}

body .auth-reset .auth-form-card > p:not(.auth-form-note){font-size:1.6rem;line-height:1.5;color:var(--ui-muted);margin:0 0 2rem}
body .auth-reset [data-reset-link-countdown]{font-size:1.5rem;min-height:4.8rem}
body .auth-reset [aria-disabled='true']{opacity:.65;cursor:wait}
body .auth-signin .auth-form-card{animation:auth-card-enter .18s ease-out}
@keyframes auth-card-enter{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){body .auth-signin .auth-form-card{animation:none}}

@media(max-width:900px){body .auth-login.auth-signin .auth-form-panel{align-items:flex-start;justify-content:flex-start}}

.auth-name-fields{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem}
body .auth-signin .auth-form-card .password-requirements{font-size:1.4rem;line-height:1.5;color:var(--ui-muted);margin:0 0 1.6rem}
@media(max-width:600px){.auth-name-fields{grid-template-columns:1fr;gap:0}}

body .auth-signin .phone-input-group > .input{margin-bottom:0}
body .auth-reset .password-control:has(+ .auth-submit){margin-bottom:1.6rem}
body .auth-reset .auth-form-card .password-requirements{margin-top:.4rem}
