.login-page {
    --page: #f4f6f7;
    --card: #fff;
    --text: #192d35;
    --muted: #43535c;
    --line: #71808b;
    --soft-line: #d5dce0;
    --soft-fill: #f2f5f6;
    --teal: #0e7c8c;
    --teal-hover: #0b6572;
    --teal-pressed: #09535e;
    --teal-soft: #e8f8fa;
    --error: #8b2631;
    --error-fill: #fff0f1;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: var(--page);
    color: var(--text);
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.login-page *, .login-page *::before, .login-page *::after { box-sizing: inherit; }
.login-page [hidden] { display: none !important; }
.login-page .login-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.login-page button, .login-page input { font: inherit; }
.login-page button { cursor: pointer; }
.login-page a { color: var(--teal); }
.login-page a:hover { text-decoration: underline; }
.login-page :focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(14, 124, 140, .35); }
.login-page .login-shell { width: min(100%, 400px); margin: auto 0; }
@media (max-width: 600px) { .login-page .login-shell { margin: 0 auto; } }
.login-page .login-card { width: 100%; padding: 24px; border: 1px solid var(--soft-line); border-radius: 8px; background: var(--card); }
.login-page .login-brand { text-align: center; margin-bottom: 24px; }
.login-page .login-logo { width: 102px; height: auto; display: inline-block; }
.login-page .login-logo-word { fill: currentColor; color: var(--text); }
.login-page .login-logo-accent { fill: #00b4ca; }
.login-page .login-company { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--muted); font-weight: 500; text-align: center; overflow-wrap: anywhere; }
.login-page .login-company[data-empty="true"] { display: none; }
.login-page .login-company-avatar { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 13px; font-weight: 500; }
.login-page .login-company-logo { width: 28px; height: 28px; flex: none; object-fit: contain; border-radius: 50%; }
.login-page h1 { margin: 0 0 16px; text-align: center; font-size: 22px; font-weight: 500; line-height: 1.25; }
.login-page .login-note, .login-page .login-server-error, .login-page .login-inline-error { margin: 0 0 16px; padding: 12px; border: 1px solid var(--soft-line); border-radius: 8px; background: var(--soft-fill); color: var(--text); overflow-wrap: anywhere; }
.login-page .login-feedback { margin-bottom: 16px; }
.login-page .login-feedback:has(.login-note[data-empty="true"]):not(:has(.login-server-error)):not(:has(.login-inline-error:not([hidden]))) { margin-bottom: 0; }
.login-page .login-feedback > div { margin-bottom: 0; }
.login-page .login-note { transition: background-color 180ms ease; }
.login-page .login-note[data-empty="true"] { display: none; }
.login-page .login-note[data-tone="warning"], .login-page .login-server-error, .login-page .login-inline-error { border-color: var(--error); background: var(--error-fill); color: var(--error); }
.login-page .login-returning { display: flex; justify-content: center; text-align: center; margin-bottom: 16px; visibility: hidden; }
.login-page .login-returning[aria-hidden="true"] { display: none; }
.login-page .login-account-pill { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 0 4px 0 8px; border-radius: 24px; background: var(--soft-fill); }
.login-page .login-account-avatar { display: inline-flex; flex: 0 0 28px; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--teal); color: var(--card); font-size: 13px; font-weight: 700; }
.login-page .login-email-chip { min-width: 0; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.login-page #login-different-account { flex: none; color: #0b6572; font-size: 13px; }
.login-page .login-field { margin-bottom: 16px; }
.login-page .login-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.login-page .login-field input { width: 100%; min-width: 0; height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font-size: 16px; }
.login-page .login-field input::placeholder { color: var(--muted); }
.login-page .login-field input[aria-invalid="true"] { border-color: var(--error); }
.login-page .login-password-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.login-page .login-password-block > label { grid-row: 1; grid-column: 1; }
.login-page .login-password-input { display: flex; grid-row: 2; grid-column: 1 / -1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.login-page .login-caps { grid-row: 3; grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.login-page .login-password-input input { flex: 1; width: 0; height: 44px; padding-right: 12px; border: 0; border-radius: 7px 0 0 7px; background: transparent; }
.login-page .login-password-input:has(input[aria-invalid="true"]) { border-color: var(--error); }
.login-page .login-password-input:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(14, 124, 140, .35); }
.login-page .login-password-input input:focus-visible { outline: none; box-shadow: none; }
.login-page .login-password-toggle { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 10px; border: 0; border-radius: 0 7px 7px 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.login-page .login-password-toggle svg { width: 20px; height: 20px; }
.login-page .login-password-toggle .login-password-eye-off, .login-page .login-password-toggle[aria-pressed="true"] .login-password-eye { display: none; }
.login-page .login-password-toggle[aria-pressed="true"] .login-password-eye-off { display: block; }
.login-page .login-forgot { grid-row: 1; grid-column: 2; display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; margin-top: -8px; font-size: 13px; text-align: right; }
.login-page .login-save { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; margin: 0 0 16px; color: var(--muted); line-height: 1.3; cursor: pointer; }
.login-page .login-save input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--teal); }
.login-page .login-save small { display: block; margin-top: 4px; font-size: 12px; }
.login-page .login-captcha { display: flex; justify-content: flex-start; margin-bottom: 12px; }
.login-page .login-captcha[hidden] ~ .login-captcha-status, .login-page .login-captcha[hidden] ~ #login-captcha-retry { display: none; }
.login-page .login-captcha-status { margin: 0 0 12px; color: var(--muted); }
.login-page .login-button { width: 100%; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none; font-weight: 500; line-height: 1.3; }
.login-page #login-sso-btn { margin-top: 0; }
.login-page #login-submit-btn { position: relative; }
.login-page #login-submit-btn[aria-busy="true"]::after { position: absolute; right: 16px; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: login-spin .8s linear infinite; }
.login-page #login-sso-btn[aria-busy="true"] { position: relative; }
.login-page #login-sso-btn[aria-busy="true"]::after { position: absolute; right: 16px; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: login-spin .8s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
.login-page .login-button:hover { text-decoration: none; }
.login-page .login-primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.login-page .login-primary:hover { border-color: var(--teal-hover); background: var(--teal-hover); color: #fff; }
.login-page .login-primary:active { border-color: var(--teal-pressed); background: var(--teal-pressed); }
.login-page .login-secondary { margin-top: 8px; background: var(--soft-fill); color: var(--text); }
.login-page .login-secondary:hover { border-color: var(--teal); background: var(--teal-soft); }
.login-page .login-sso-available { border: 1px solid var(--teal); background: var(--teal-soft); }
.login-page .login-sso-mark, .login-page .login-google-mark { width: 20px; height: 20px; flex: none; }
.login-page .login-sso-mark { fill: var(--teal); }
.login-page .login-primary .login-sso-mark { fill: currentColor; }
.login-page .login-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.login-page .login-divider::before, .login-page .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--soft-line); }
.login-page .login-text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--teal); text-decoration: underline; text-align: center; }
.login-page .login-recovery, .login-page .login-back { width: 100%; margin-top: 8px; }
.login-page .login-footer { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 16px 8px 0; color: var(--muted); font-size: 13px; text-align: center; }
.login-page .login-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 8px; }
.login-page .login-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.login-page .login-captcha[hidden] { display: none !important; }
.login-page .login-notice { margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); overflow-wrap: anywhere; }
@media (max-height: 680px) { .login-page { justify-content: flex-start; } .login-page .login-shell { margin: 0; } }
@media (max-width: 480px) { .login-page { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); } .login-page .login-card { padding: 24px 16px; } }
@media (max-width: 340px) { .login-page .login-card { padding: 20px 12px; } .login-page .login-forgot { font-size: 13px; } }
@media (prefers-color-scheme: dark) {
    .login-page { --page: #131b20; --card: #1e292f; --text: #f1f6f7; --muted: #c8d3d7; --line: #aab8bf; --soft-line: #62717a; --soft-fill: #27363c; --teal: #45c5d5; --teal-hover: #36aebe; --teal-pressed: #208d9c; --teal-soft: #173b43; --error: #ffb6bd; --error-fill: #4a222a; }
    .login-page .login-primary { background: #0e7c8c; border-color: #0e7c8c; color: #fff; }
    .login-page .login-primary:hover { background: #0b6572; border-color: #0b6572; }
    .login-page .login-primary:active { background: #09535e; border-color: #09535e; }
    .login-page #login-different-account { color: #45c5d5; }
}
@media (prefers-reduced-motion: reduce) { .login-page *, .login-page *::before, .login-page *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } }
@media (forced-colors: active) { .login-page .login-button, .login-page .login-field input, .login-page .login-email-chip { border: 1px solid ButtonText; } .login-page .login-sso-mark { fill: ButtonText; } }

.login-page .login-returning[aria-hidden="true"] { display: none; }
.login-page .login-feedback .login-inline-error:not([hidden]) ~ * { margin-top: 8px; }
.login-page .login-server-error::before, .login-page .login-inline-error::before, .login-page .login-note[data-tone="warning"]::before { content: "ⓘ"; margin-right: 8px; font-weight: 500; }
.login-page .login-footer { align-items: center; }
.login-page .login-footer a, .login-page .login-protection { line-height: 20px; padding-block: 12px; }
.login-page .login-button { transition: border-color 180ms ease; }
.login-page .login-button[aria-busy="true"] { cursor: progress; }
.login-page .login-secondary:active { background: var(--teal-soft); border-color: var(--teal); }
.login-page h1 { text-wrap: balance; }

.login-page #login-sso-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.login-page .login-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.login-page .mfa-intro { margin: 0 0 24px; color: var(--muted); text-align: center; }
.login-page .mfa-help { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.login-page .mfa-actions { display: flex; flex-direction: column; align-items: center; margin-top: 8px; }
.login-page .mfa-code { font-variant-numeric: tabular-nums; }
.login-page .mfa-submit { position: relative; }
.login-page .mfa-submit[aria-busy="true"]::after { position: absolute; right: 16px; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: login-spin .8s linear infinite; }

.login-page .login-microsoft-mark { display: none; flex: none; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 1px; }
.login-page [data-provider="microsoft"] .login-microsoft-mark { display: grid; }
.login-page [data-provider="microsoft"] .login-sso-mark { display: none; }
.login-page .login-microsoft-mark b:nth-child(1) { background: #f35325; }
.login-page .login-microsoft-mark b:nth-child(2) { background: #81bc06; }
.login-page .login-microsoft-mark b:nth-child(3) { background: #05a6f0; }
.login-page .login-microsoft-mark b:nth-child(4) { background: #ffba08; }
.login-page .login-help { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--soft-line); text-align: center; }
.login-page .login-help p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-page #login-google-btn[aria-busy="true"] { position: relative; }
.login-page #login-google-btn[aria-busy="true"]::after { position: absolute; right: 16px; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: login-spin .8s linear infinite; }

.login-page.recovery-page .recovery-description { margin: 0 0 24px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.login-page.recovery-page .recovery-back { width: 100%; margin-top: 8px; }
.login-page.recovery-page .recovery-confirmation { margin: 0 0 24px; padding: 12px; border: 1px solid var(--soft-line); border-radius: 8px; background: var(--soft-fill); color: var(--muted); text-align: center; }
.login-page.recovery-page .recovery-confirmation p { margin: 0; }
.login-page.recovery-page .login-password-input { display: flex; }
.login-page.recovery-page .login-password-input input { padding-right: 52px; }
.login-page.recovery-page .login-password-toggle { width: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.login-page.recovery-page .login-password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-page.recovery-page .login-password-toggle .icon-hide, .login-page.recovery-page .login-password-toggle[aria-pressed="true"] .icon-show { display: none; }
.login-page.recovery-page .login-password-toggle[aria-pressed="true"] .icon-hide { display: block; }
.login-page.recovery-page #recovery-submit[aria-busy="true"] { position: relative; }
.login-page.recovery-page #recovery-submit[aria-busy="true"]::after { position: absolute; right: 16px; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: login-spin .8s linear infinite; }
.login-page .login-server-error[data-tone="success"] { border-color: var(--teal); background: var(--teal-soft); color: var(--text); }
.login-page .login-server-error[data-tone="success"]::before { content: "✓"; }

/* Keep the sign-in card comfortable without constraining its content height. */
.login-page #login-shell { width: min(100%, 440px); }
.login-page #login-shell .login-card { padding: 32px; }
.login-page .login-email-sso-hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-page #login-shell[data-state="recovery"] .login-email-sso-hint { display: none; }
@media (max-width: 480px) { .login-page #login-shell .login-card { padding: 24px 16px; } }
@media (max-width: 340px) { .login-page #login-shell .login-card { padding: 20px 12px; } }

@keyframes login-autofill-start { from { opacity: .999; } to { opacity: 1; } }
.login-page #identity:autofill { animation-name: login-autofill-start; animation-duration: .01s; }
.login-page #identity:-webkit-autofill { animation-name: login-autofill-start; animation-duration: .01s; }
.login-page .login-button:disabled { cursor: progress; }
.login-page .login-button:disabled[data-verification-blocked="true"] { cursor: not-allowed; }

.login-page #login-sso-entry[aria-busy="true"] { position: relative; }
.login-page #login-sso-entry[aria-busy="true"]::after { position: absolute; right: 16px; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: login-spin .8s linear infinite; }

.login-page.recovery-page .recovery-description { margin: 0 0 24px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.login-page.recovery-page .recovery-back { width: 100%; margin-top: 8px; }
.login-page.recovery-page .recovery-confirmation { margin: 0 0 24px; padding: 12px; border: 1px solid var(--soft-line); border-radius: 8px; background: var(--soft-fill); color: var(--muted); text-align: center; }
.login-page.recovery-page .recovery-confirmation p { margin: 0; }
.login-page.recovery-page .recovery-confirmation p + p { margin-top: 8px; }
.login-page.recovery-page .recovery-confirmation-icon { width: 28px; height: 28px; margin-bottom: 8px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linejoin: round; }
.login-page.recovery-page .recovery-destination { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.login-page.recovery-page .recovery-cooldown { margin: 8px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.login-page.recovery-page .recovery-cooldown:empty { display: none; }
.login-page.recovery-page .recovery-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.login-page.recovery-page .login-footer { flex-direction: column; align-items: center; }
.login-page.recovery-page .login-footer nav { align-items: center; gap: 0 8px; }
.login-page.recovery-page .login-password-input { display: block; }
.login-page.recovery-page .login-password-input input { padding-right: 52px; }
.login-page.recovery-page .login-password-toggle { width: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.login-page.recovery-page .login-password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-page.recovery-page .login-password-toggle .icon-hide, .login-page.recovery-page .login-password-toggle[aria-pressed="true"] .icon-show { display: none; }
.login-page.recovery-page .login-password-toggle[aria-pressed="true"] .icon-hide { display: block; }
.login-page.recovery-page #recovery-submit[aria-busy="true"] { position: relative; }
.login-page.recovery-page #recovery-submit[aria-busy="true"]::after { position: absolute; right: 16px; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: login-spin .8s linear infinite; }
.login-page.recovery-page #recovery-resend[aria-busy="true"] { position: relative; }
.login-page.recovery-page #recovery-resend[aria-busy="true"]::after { position: absolute; right: 16px; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: login-spin .8s linear infinite; }
.login-page.recovery-page #recovery-resend:disabled { border-color: #d5dce0; background: #d5dce0; color: #43535c; cursor: not-allowed; }
.login-page .login-server-error[data-tone="success"] { border-color: var(--teal); background: var(--teal-soft); color: var(--text); }
.login-page .login-server-error[data-tone="success"]::before { content: "✓"; }

.login-page.recovery-page .login-password-input { display: flex; position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.login-page.recovery-page .login-password-input input { flex: 1; width: 0; height: 44px; padding-right: 12px; border: 0; border-radius: 7px 0 0 7px; background: transparent; }
.login-page.recovery-page .login-password-input:has(input[aria-invalid="true"]) { border-color: var(--error); }
.login-page.recovery-page .login-password-input:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.login-page.recovery-page .login-password-toggle { position: static; flex: 0 0 44px; width: 44px; min-width: 44px; padding: 10px; border-radius: 0 7px 7px 0; color: var(--muted); }
.login-page.recovery-page .login-password-toggle svg { transform: translateX(-4px); }
.login-page.recovery-page .recovery-username { position: absolute; left: -10000px; width: 1px; height: 1px; }
.login-page.recovery-page .recovery-match { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.login-page.recovery-page .recovery-match[data-state="match"] { color: var(--teal); font-weight: 600; }
.login-page.recovery-page .recovery-match-icon { display: none; }
.login-page.recovery-page .recovery-match[data-state="match"] .recovery-match-icon { display: inline; margin-right: 6px; font-weight: 700; }
.login-page.recovery-page .recovery-strength:not([hidden]) { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.login-page.recovery-page .recovery-strength progress { --meter-color: var(--teal); appearance: none; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 4px; background: #e2e5e7; color: var(--meter-color); accent-color: var(--meter-color); }
.login-page.recovery-page .recovery-strength progress[data-level="1"] { --meter-color: #a84b12; }
.login-page.recovery-page .recovery-strength progress[data-level="2"] { --meter-color: #2465a0; }
.login-page.recovery-page .recovery-strength progress[data-level="3"] { --meter-color: #087149; }
.login-page.recovery-page .recovery-strength progress::-webkit-progress-bar { border-radius: 4px; background: #e2e5e7; }
.login-page.recovery-page .recovery-strength progress::-webkit-progress-value { border-radius: 4px; background: var(--meter-color); }
.login-page.recovery-page .recovery-strength progress::-moz-progress-bar { border-radius: 4px; background: var(--meter-color); }
@media (forced-colors: active) {
    .login-page.recovery-page .recovery-strength progress { appearance: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .login-page.recovery-page #recovery-submit[aria-busy="true"]::after,
    .login-page.recovery-page #recovery-resend[aria-busy="true"]::after { animation: none !important; }
}

/* Confirmation heading is focused programmatically, not a keyboard control. */
.login-page.recovery-page #recovery-heading:focus { outline: none; box-shadow: none; }
.login-page.recovery-page .recovery-resend { display: flex; margin: 8px auto 0; }
.login-page.recovery-page #recovery-resend:disabled { background: transparent; border-color: transparent; color: var(--muted); cursor: not-allowed; }

/* Shared sign-in and recovery layout. */
.login-page { font-size: 16px; }
.login-page .login-shell, .login-page #login-shell { width: min(100%, 440px); }
.login-page .login-card, .login-page #login-shell .login-card { padding: 40px 32px 32px; border-radius: 16px; }
.login-page .login-brand { margin-bottom: 24px; }
.login-page h1 { margin: 0 0 16px; font-size: 24px; font-weight: 650; line-height: 1.25; }
.login-page :focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; box-shadow: none; }
.login-page .login-returning { margin-bottom: 24px; }
.login-page .login-account-pill { display: inline-flex; min-width: 0; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 999px; }
.login-page .login-email-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.login-page #login-different-account { position: relative; min-height: 0; padding: 4px 8px; color: var(--teal); font-size: 14px; text-decoration: none; }
.login-page #login-different-account::before { position: absolute; inset: -10px 0; content: ""; }
.login-page #login-different-account:hover, .login-page #login-different-account:focus-visible { text-decoration: underline; }
.login-page .login-field label { margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.login-page .login-field input { height: 48px; padding: 0 48px 0 14px; border-radius: 10px; }
.login-page .login-password-block { align-items: baseline; }
.login-page .login-password-input, .login-page.recovery-page .login-password-input { display: block; position: relative; min-width: 0; border: 0; border-radius: 10px; background: transparent; }
.login-page .login-password-input input, .login-page.recovery-page .login-password-input input { display: block; width: 100%; height: 48px; padding: 0 48px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.login-page .login-password-input input[aria-invalid="true"] { border-color: var(--error); }
.login-page .login-password-input:has(input:focus-visible), .login-page.recovery-page .login-password-input:has(input:focus-visible) { outline: none; box-shadow: none; }
.login-page .login-password-input input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; box-shadow: none; }
.login-page .login-password-toggle, .login-page.recovery-page .login-password-toggle { position: absolute; top: 4px; right: 4px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 9px; border-radius: 8px; }
.login-page.recovery-page .login-password-toggle svg { transform: none; }
.login-page .login-caps { margin-top: 6px; }
.login-page .login-forgot { position: relative; min-height: 0; margin: 0 0 6px; font-size: 14px; text-decoration: none; }
.login-page .login-forgot::before { position: absolute; inset: -10px 0; content: ""; }
.login-page .login-forgot:hover, .login-page .login-forgot:focus-visible { text-decoration: underline; }
.login-page #login-shell[data-state="password"] .login-password-block, .login-page #login-shell[data-state="available"] .login-password-block { margin-bottom: 0; }
.login-page #login-shell[data-state="password"] .login-error-space, .login-page #login-shell[data-state="available"] .login-error-space { min-height: 21px; margin-top: 6px; }
.login-page .login-error-space .login-inline-error { margin: 0; padding: 0; border: 0; background: transparent; color: var(--error); font-size: 14px; }
.login-page .login-error-space .login-inline-error::before { content: none; }
.login-page .login-save { gap: 10px; margin: 12px 0 20px; font-size: 14px; }
.login-page .login-save input { width: 20px; height: 20px; margin: 1px 0 0; }
.login-page .login-save small { font-size: 12.5px; }
.login-page .login-button { min-height: 48px; border-radius: 10px; font-size: 16px; font-weight: 650; }
.login-page .login-text-button { font-size: 14px; text-decoration: none; }
.login-page .login-text-button:hover, .login-page .login-text-button:focus-visible { text-decoration: underline; }
.login-page .login-back, .login-page.recovery-page .recovery-back { margin-top: 16px; }
.login-page .login-footer { gap: 6px; margin-top: 20px; padding: 0; }
.login-page .login-footer nav, .login-page.recovery-page .login-footer nav { gap: 0; }
.login-page .login-footer nav .login-footer-item { display: inline-flex; align-items: center; white-space: nowrap; }
.login-page .login-footer nav .login-footer-separator { margin: 0 8px; }
.login-page .login-footer a { color: var(--muted); }
.login-page .login-protection { padding: 0; }
html.login-email-first .login-page #login-shell .login-footer-item,
.login-page #login-shell[data-state]:not([data-state="password"]):not([data-state="available"]):not([data-state="recovery"]) .login-footer-item { display: none; }
@media (max-width: 420px) { .login-page .login-card, .login-page #login-shell .login-card { padding: 28px 20px 24px; } }
@media (forced-colors: active) { .login-page .login-password-input input { border: 1px solid FieldText; } .login-page :focus-visible { outline-color: Highlight; } }
.login-page .login-password-toggle::before { position: absolute; inset: -2px; content: ""; }
.login-page .login-forgot::before { inset: -12px 0; }
/* Preserve readable contrast against the filled account chip in both themes. */
.login-page #login-different-account { color: var(--teal-hover); }
@media (prefers-color-scheme: dark) { .login-page #login-different-account { color: var(--teal); } }
.login-page #login-different-account:focus, .login-page .login-forgot:focus, .login-page .login-text-button:focus { text-decoration: underline; }

/* Anchor both sign-in and recovery so changes below the heading never move it. */
.login-page { justify-content: flex-start; padding-top: max(64px, env(safe-area-inset-top)); }
.login-page .login-shell, .login-page #login-shell { margin: 0 auto; }
@media (max-width: 600px) { .login-page { padding-top: max(24px, env(safe-area-inset-top)); } }

/* Muted disabled fills retain readable labels without resembling active buttons. */
.login-page .login-button:disabled[data-verification-blocked="true"], .login-page .login-button:disabled[data-verification-blocked="true"]:hover {
    color: #30414a;
    background: #d5dce0;
    border-color: #d5dce0;
    opacity: 1;
    transition: none;
    cursor: not-allowed;
}
@media (prefers-color-scheme: dark) {
    .login-page .login-button:disabled[data-verification-blocked="true"], .login-page .login-button:disabled[data-verification-blocked="true"]:hover {
        color: #eef5f7;
        background: #30444b;
        border-color: #30444b;
    }
}

/* The border and ring meet without an intervening grey gap. */
.login-page .login-field input:focus-visible,
.login-page .login-password-input input:focus-visible,
.login-page.recovery-page .login-password-input input:focus-visible {
    border-color: var(--teal);
    outline: 3px solid var(--teal);
    outline-offset: 0;
    box-shadow: none;
}
@media (forced-colors: active) {
    .login-page .login-field input:focus-visible { border-color: Highlight; outline-color: Highlight; }
}

/* Keep the native checkbox accessible and matched to the active color scheme. */
@media (prefers-color-scheme: dark) {
    .login-page .login-save input { color-scheme: dark; accent-color: #45c5d5; }
}

/* Reserve one line for a short validation message without hiding longer ones. */
.login-page .login-error-space { min-height: 21px; margin: 6px 0 0; }
.login-page .login-error-space .login-inline-error { margin: 0; padding: 0; border: 0; background: transparent; color: var(--error); font-size: 14px; line-height: 21px; }
.login-page .login-error-space .login-inline-error::before { content: none; }
.login-page.recovery-page #recovery-form:not([data-recovery-mode="reset"]) .login-field { margin-bottom: 0; }
.login-page.recovery-page .login-error-space { margin-bottom: 0; }
.login-page.mfa-challenge-page .login-field { margin-bottom: 0; }
.login-page.mfa-challenge-page .login-error-space { margin: 6px 0 16px; }
.login-page.mfa-challenge-page .login-field input.mfa-code { padding: 0 14px; }
.login-page.mfa-challenge-page .login-field input.mfa-code[inputmode="numeric"] { font-size: 20px; letter-spacing: .25em; text-align: center; }

/* Keep the verification slot after the submit action and let it grow as needed. */
.login-page .login-captcha { width: 100%; justify-content: center; margin: 0; }
.login-page .login-captcha[data-widget-visible="true"] { margin-top: 16px; }
.login-page .login-captcha[data-widget-size="flexible"] > div { width: 100% !important; max-width: 100%; }
.login-page .login-captcha-space:has(.login-captcha[data-widget-visible="true"]) + #login-more-options { margin-top: 8px; }
.login-page .login-captcha-status { display: block; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; text-align: center; }
.login-page #login-captcha-retry { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 13px; }
.login-page .login-captcha-space:has(.login-captcha-status:not([hidden])) + #login-more-options { margin-top: 8px; }
.login-page #login-submit-btn:disabled[data-verification-blocked="true"] { outline: none; }
.login-page.recovery-page .recovery-description:has(+ .recovery-confirmation) { margin-bottom: 11px; }
.login-page.recovery-page .recovery-confirmation { margin-bottom: 7px; }
.login-page #login-shell[data-state="email"] .login-captcha-space { display: none; }
.login-page #login-password-error-slot { grid-row: 3; grid-column: 1 / -1; }
.login-page .login-password-block .login-caps { grid-row: 4; }
@keyframes login-step-fade { from { opacity: 0; } to { opacity: 1; } }
.login-page .login-heading-transition { animation: login-step-fade 150ms ease-out; }
.login-page #login-email-block:not([hidden]),
.login-page #login-password-block:not([hidden]),
.login-page #login-sso-actions:not([hidden]),
.login-page #login-returning[aria-hidden="false"] { animation: login-step-fade 150ms ease-out; }

/* Reset form feedback occupies one line whether it contains a match or an error. */
.login-page.recovery-page #recovery-form[data-recovery-mode="reset"] .login-field { margin-bottom: 20px; }
.login-page.recovery-page #recovery-form[data-recovery-mode="reset"] .login-field.recovery-confirm-field { margin-bottom: 16px; }
.login-page.recovery-page .recovery-feedback .recovery-match { margin: 0; line-height: 21px; }
.login-page.recovery-page .recovery-strength:not([hidden]) { gap: 6px; }
.login-page.recovery-page .recovery-strength-disclaimer { display: block; font-size: 13px; }
.login-page.recovery-page #recovery-form[data-recovery-mode="reset"] .recovery-back { margin-top: 8px; }

/* Keep incomplete MFA input visibly muted while allowing validation on submit. */
.login-page .mfa-submit[data-incomplete]:not([aria-busy="true"]),
.login-page .mfa-submit[data-incomplete]:not([aria-busy="true"]):hover { background: #d4dce0; border-color: #d4dce0; color: #263e48; }
@media (prefers-color-scheme: dark) {
    .login-page .mfa-submit[data-incomplete]:not([aria-busy="true"]),
    .login-page .mfa-submit[data-incomplete]:not([aria-busy="true"]):hover { background: #40535a; border-color: #40535a; color: #fff; }
}
