/*
 * Login page branding - aligned with reference Adams® Tax Forms Helper®.
 * Colors are sourced through shared design tokens and login aliases.
 */
:root {
    --login-header-bg: var(--tops-login-header-bg);
    --login-main-bg: var(--tops-login-main-bg);
    --login-yellow: var(--tops-sunglow);
    --login-dark-blue: var(--tops-login-dark-blue);
    --login-gray: var(--tops-login-muted);
    --login-footer-bg: var(--tops-login-footer-bg);
}

.login-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.login-header {
    background-color: var(--login-header-bg);
}

.login-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.login-logo-img {
    height: 27px;
    width: auto;
    max-width: 320px;
}

.login-help-link {
    color: var(--tops-white);
    text-decoration: none;
    font-size: 1rem;
}

.login-help-link:hover {
    color: var(--tops-nav-group-color);
}

/* Main */
.login-main {
    flex: 1;
    width: 100%;
    margin: 0;
}

.login-main-bg {
    width: 100%;
    margin: 0;
    padding-top: 70px;
    padding-bottom: 3em;
    background-color: var(--login-main-bg);
    color: var(--tops-white);
}

.login-container {
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--tops-white);
    color: var(--tops-gray-600-neutral);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}

.login-col-left,
.login-col-right {
    flex-direction: column;
    padding: 30px;
}

.login-col-left {
    flex: 1;
    min-width: 280px;
    border-right: 1px solid var(--tops-divider);
}

.login-col-right {
    flex: 1;
    min-width: 320px;
}

.login-welcome-heading {
    color: var(--login-dark-blue);
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
}

.login-welcome-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--tops-gray-600-neutral);
    margin: 0 0 1rem 0;
}

.login-visual {
    margin-top: 1rem;
}

.login-visual-img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Tabs */
.login-tabs {
    display: inline-flex;
    width: 100%;
    white-space: nowrap;
    margin: 3px 0 1rem 0;
}

.tab-pane-active {
    color: var(--login-header-bg);
    padding: 0 40px 20px 0;
    text-underline-offset: 10px;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--login-yellow);
    font-weight: bold;
}

.tab-pane-inactive {
    color: var(--login-gray);
    padding: 0 40px 20px 0;
    text-decoration: none;
    font-weight: bold;
}

.tab-pane-inactive:hover {
    color: var(--tops-login-tab-hover);
}

.login-form-slot {
    width: 100%;
}

/* Form content inside right column */
.login-form-content {
    width: 100%;
}

.signup-flow .signup-step-card {
    background: var(--color-brand-blue-50);
    border: 0;
    border-radius: 0;
    padding: 0;
}

.signup-step-label {
    color: var(--tops-gray-600);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 0.35rem 0;
}

.signup-step-title {
    color: var(--tops-brand-600);
    font-family: "Manrope", sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.signup-step-description {
    color: var(--tops-gray-700);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.signup-resend-link {
    color: var(--tops-brand-600);
    text-decoration: none;
}

.signup-resend-link:hover {
    text-decoration: underline;
}

.signup-resend-link--disabled,
.signup-resend-link--disabled:hover {
    color: var(--tops-gray-500);
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: none;
}

.signup-actions-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1rem;
}

.signup-primary-btn {
    min-width: 190px;
}

.login-prompt {
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    color: var(--tops-gray-600-neutral);
}

.login-welcome {
    color: var(--color-brand-blue-500);
    font-family: var(--tops-body-font, Inter, sans-serif);
    font-size: var(--font-size-xs);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 var(--spacing-2);
    text-transform: uppercase;
}

.login-shell .login-intro {
    color: var(--color-stormy-grey-600);
    font-family: var(--tops-body-sm-font, var(--tops-body-font, Inter, sans-serif));
    font-size: var(--tops-body-sm-size);
    font-weight: var(--tops-body-sm-weight);
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.login-prompt a,
.login-forgot-link {
    color: var(--tops-brand-600);
    text-decoration: none;
}

.login-prompt a:hover,
.login-forgot-link:hover {
    text-decoration: underline;
}

.login-forgot-link {
    font-size: 0.9rem;
}

.login-password-field {
    position: relative;
}

.login-password-field .mud-input-slot {
    padding-right: 5.25rem;
}

.login-password-toggle {
    background: transparent;
    border: 0;
    color: var(--color-brand-blue-600);
    cursor: pointer;
    font-family: var(--tops-body-sm-font, var(--tops-body-font, Inter, sans-serif));
    font-size: var(--tops-body-sm-size);
    font-weight: var(--tops-body-sm-weight);
    height: var(--tops-input-height);
    line-height: var(--tops-input-height);
    padding: 0 var(--spacing-3);
    position: absolute;
    right: 0;
    top: calc(var(--tops-label-helper-line) + 6px);
}

.login-password-toggle:hover {
    text-decoration: underline;
}

.login-shell .forgot-password-code-row {
    justify-content: flex-start;
    margin-bottom: var(--spacing-4);
}

.forgot-password-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1rem;
}

.signup-shell .forgot-password-actions .auth-submit-btn.mud-button-root {
    min-width: 190px;
    width: auto;
}

.login-shell input[data-cy="forgot-password-new-password"].mud-input-root::placeholder,
.login-shell input[data-cy="forgot-password-confirm-password"].mud-input-root::placeholder,
.login-shell input[data-cy="recovery-reset-password"].mud-input-root::placeholder,
.login-shell input[data-cy="recovery-reset-confirm"].mud-input-root::placeholder,
.login-shell input[data-cy="reset-password-by-link-new-password"].mud-input-root::placeholder,
.login-shell input[data-cy="reset-password-by-link-confirm-password"].mud-input-root::placeholder,
.login-shell input[data-cy="recovery-sms-code-input"].mud-input-root::placeholder,
.signup-shell input[data-cy="signup-password"].mud-input-root::placeholder,
.signup-shell input[data-cy="signup-confirm-password"].mud-input-root::placeholder,
.login-shell input[data-cy="forgot-password-new-password"].mud-input-root::-webkit-input-placeholder,
.login-shell input[data-cy="forgot-password-confirm-password"].mud-input-root::-webkit-input-placeholder,
.login-shell input[data-cy="recovery-reset-password"].mud-input-root::-webkit-input-placeholder,
.login-shell input[data-cy="recovery-reset-confirm"].mud-input-root::-webkit-input-placeholder,
.login-shell input[data-cy="reset-password-by-link-new-password"].mud-input-root::-webkit-input-placeholder,
.login-shell input[data-cy="reset-password-by-link-confirm-password"].mud-input-root::-webkit-input-placeholder,
.login-shell input[data-cy="recovery-sms-code-input"].mud-input-root::-webkit-input-placeholder,
.signup-shell input[data-cy="signup-password"].mud-input-root::-webkit-input-placeholder,
.signup-shell input[data-cy="signup-confirm-password"].mud-input-root::-webkit-input-placeholder {
    color: var(--tops-gray-400, #909094) !important;
    opacity: 1 !important;
}

.signup-back-link.forgot-password-back {
    font-size: var(--font-size-sm);
    gap: 0;
    line-height: 1.2;
}

.forgot-password-back--top {
    left: 0;
    position: absolute;
    top: var(--spacing-4);
}

.login-shell:has(.login-recovery-reset) .signup-shell-form-inner {
    position: relative;
}

.login-shell.signup-shell .login-recovery-reset-success {
    text-align: left;
    width: min(100%, 33.5rem);
}

.login-shell.signup-shell .login-recovery-reset-success .signup-step-title {
    margin-bottom: var(--spacing-3);
    text-align: left;
}

.login-shell.signup-shell .login-recovery-reset-success .login-intro {
    margin-bottom: var(--spacing-3);
    max-width: none;
    text-align: left;
}

.login-shell.signup-shell .login-recovery-reset-success .login-intro + .login-intro {
    margin-bottom: 0;
}

.login-shell.signup-shell .login-recovery-reset-success .forgot-password-actions {
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: var(--spacing-4);
    width: auto;
}

.login-shell.signup-shell .login-recovery-reset-success .forgot-password-actions .mud-button-root {
    min-width: 0;
    width: auto;
}

.login-shell:has(.login-recovery-reset) .signup-verify-back-top,
.login-shell:has(.login-verify-email-required) .signup-verify-back-top,
.login-shell:has(.login-reset-by-link) .signup-verify-back-top {
    left: 0;
    margin: 0;
    position: absolute;
    top: var(--spacing-4);
}

.login-shell:has(.login-verify-email-required) .signup-shell-form-inner,
.login-shell:has(.login-reset-by-link) .signup-shell-form-inner {
    position: relative;
}

/* Design library primary submit — full width on auth forms */
.login-form-content ::deep .auth-submit-btn.mud-button-root {
    width: 100%;
}

/*
 * AT-953 — Helper 3.0 auth shell for LoginLayout (Figma 4496-26614 Step 4 baseline).
 * Reuses .signup-shell grid; credential form sits on brand-blue/50.
 * Lockout uses signup-step-card--recovery (brand-blue/50 pane + soft cards) from signup-page.css.
 */
/* Default login form background — brand-blue/50 tint (non-lockout only) */
.login-shell:not(:has(.login-lockout-active)) .signup-shell-form,
.login-shell:not(:has(.login-lockout-active)) .signup-shell-form-inner,
.login-shell:not(:has(.login-lockout-active)) .signup-shell-form-slot,
.login-shell .login-form-content:not(.login-lockout-active) {
    background-color: var(--color-brand-blue-50, #f7f9fd) !important;
}

/* Short login screens sit in the middle; the tab row stays at the top. */
.login-shell .signup-shell-form-inner {
    justify-content: center;
    padding-top: 0;
}

.login-shell:has(.login-mfa-step) .signup-shell-form-inner {
    justify-content: flex-start;
    padding-top: var(--spacing-4);
}

.login-shell.signup-shell:has(.login-mfa-step) .signup-shell-form-slot,
.login-shell.signup-shell:has(.login-mfa-step) .login-form-content {
    align-items: center;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.login-shell.signup-shell:has(.login-mfa-step) .login-mfa-step {
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    width: 100%;
}

.login-shell:has(.login-mfa-step) .signup-shell-form-inner > .signup-signin-prompt {
    display: none;
}

.login-shell:has(.login-recovery-options) .signup-shell-form-inner {
    justify-content: flex-start;
    padding-top: var(--spacing-4);
}

.login-shell.signup-shell:has(.login-recovery-options) .signup-shell-form-slot,
.login-shell.signup-shell:has(.login-recovery-options) .login-form-content {
    align-items: center;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.login-shell.signup-shell:has(.login-recovery-options) .login-recovery-card {
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    width: 100%;
}

.login-shell .login-recovery-pin .signup-verify-main,
.login-shell .login-recovery-email .signup-verify-main {
    width: min(100%, 26rem);
}

.login-shell .signup-recovery-pin-entry {
    margin-bottom: var(--spacing-6);
    text-align: left;
    width: 100%;
}

.login-shell .signup-recovery-pin-entry .signup-dl-field.mud-input-control:not(.mud-input-error) .mud-input-label,
.login-shell .signup-recovery-pin-entry .signup-dl-field.mud-input-control:not(.mud-input-error) .mud-input-label.mud-input-label-inputcontrol {
    background-color: transparent !important;
    color: var(--tops-brand-600) !important;
    font-size: var(--tops-label-helper-size) !important;
    font-weight: var(--tops-label-helper-weight) !important;
    line-height: var(--tops-label-helper-line) !important;
}

.login-shell .signup-recovery-pin-entry .mud-input-outlined .mud-input-outlined-border {
    border-color: var(--tops-input-border-default);
    border-radius: var(--tops-input-radius);
    border-width: var(--tops-input-stroke-width);
}

.login-shell .signup-recovery-pin-entry .mud-input-slot::placeholder {
    color: var(--tops-gray-400);
}

.login-shell .login-recovery-card .signup-verify-main {
    max-width: none;
    width: min(100%, 40rem);
}

.login-shell .login-recovery-card.login-recovery-pin .signup-verify-main {
    width: min(100%, 26rem);
}

.login-shell.signup-shell:has(.login-recovery-options) .login-recovery-card.login-recovery-pause {
    padding-bottom: 5rem;
}

.login-shell .login-recovery-pause-support {
    color: var(--color-stormy-grey-700);
    margin-top: 1.25rem;
    text-align: center;
}

.login-shell .login-recovery-email-missing {
    margin-top: 1.25rem;
    position: static;
    text-align: left;
}

.login-shell.signup-shell .login-recovery-email .recovery-email-address {
    font-weight: var(--font-weight-semibold, 600);
}

.login-shell .login-recovery-card.login-recovery-pause .signup-verify-main {
    align-items: center;
    margin-inline: auto;
    text-align: center;
    width: min(100%, 36rem);
}

.login-shell.signup-shell .login-recovery-pause .signup-verify-main .signup-step-title,
.login-shell.signup-shell .login-recovery-pause .signup-verify-main .signup-step-description,
.login-shell .login-recovery-pause-support {
    text-align: center;
    width: 100%;
}

.login-shell.signup-shell .login-recovery-pause .signup-step-title {
    margin-bottom: 0.5rem;
}

.login-shell.signup-shell .login-recovery-pause .signup-verify-main .signup-step-description {
    line-height: 1.6;
    margin: 0.5rem 0 0;
    max-width: none;
    white-space: normal;
}

.login-shell.signup-shell:has(.login-recovery-email) .signup-shell-form-inner,
.login-shell.signup-shell:has(.login-recovery-email) .signup-shell-form-slot,
.login-shell.signup-shell:has(.login-recovery-email) .login-form-content {
    align-items: stretch;
    flex: 1 1 auto;
    text-align: left;
}

.login-shell.signup-shell:has(.login-recovery-email) .signup-shell-form-inner {
    justify-content: flex-start;
    max-width: 33.5rem;
    padding-top: 0;
    position: relative;
}

.login-shell.signup-shell:has(.login-recovery-email) .login-form-content {
    justify-content: center;
}

.login-shell:has(.login-recovery-email) .signup-verify-back-top {
    left: 0;
    margin: 0;
    position: absolute;
    top: var(--spacing-4);
}

.login-shell.signup-shell:has(.login-recovery-email) .login-recovery-card.login-recovery-pause {
    flex: 0 1 auto;
    justify-content: flex-start;
    padding-bottom: 0;
}

.login-shell .login-recovery-card.login-recovery-email.login-recovery-pause .signup-verify-main {
    align-items: flex-start;
    margin-inline: 0;
    position: static;
    text-align: left;
    width: 100%;
}

.login-shell .login-recovery-card.login-recovery-email .signup-verify-main {
    align-items: flex-start;
    text-align: left;
}

.login-shell.signup-shell .login-recovery-email .signup-verify-main .signup-step-title,
.login-shell.signup-shell .login-recovery-email .signup-verify-main .signup-step-description,
.login-shell.signup-shell .login-recovery-email .signup-verify-main .login-intro,
.login-shell .login-recovery-email .login-recovery-pause-support,
.login-shell .login-recovery-email-missing {
    text-align: left;
    width: 100%;
}

.login-shell.signup-shell:has(.login-recovery-pin) .signup-shell-form-inner {
    justify-content: flex-start;
    max-width: 33.5rem;
    padding-top: 0;
    position: relative;
    text-align: left;
}

.login-shell.signup-shell:has(.login-recovery-pin) .signup-shell-form-slot,
.login-shell.signup-shell:has(.login-recovery-pin) .login-form-content {
    align-items: stretch;
    flex: 1 1 auto;
    justify-content: center;
    text-align: left;
    width: 100%;
}

.login-shell:has(.login-recovery-pin) .signup-verify-back-top {
    left: 0;
    margin: 0;
    position: absolute;
    top: var(--spacing-4);
}

.login-shell.signup-shell:has(.login-recovery-pin) .login-recovery-card {
    align-items: stretch;
    flex: 0 1 auto;
    justify-content: flex-start;
}

.login-shell.signup-shell:has(.login-recovery-pin) .signup-verify-main {
    align-items: flex-start;
    margin-inline: 0;
    text-align: left;
    width: 100%;
}

.login-shell.signup-shell:has(.login-recovery-pin) .signup-verify-main .signup-step-title {
    font-size: var(--font-size-2xl);
    line-height: 1.2;
    margin-bottom: var(--spacing-3);
    text-align: left;
}

.login-shell.signup-shell:has(.login-recovery-pin-locked) .login-intro {
    margin-bottom: 1rem;
    max-width: none;
    text-align: left;
}


.login-shell.signup-shell:has(.login-recovery-pin-locked) .login-recovery-email-missing {
    color: var(--color-stormy-grey-700);
}

.login-shell.signup-shell:has(.login-recovery-pin-locked) .forgot-password-actions .mud-button-root {
    min-width: 0;
    width: auto;
}

.login-shell.signup-shell:has(.login-recovery-sms) .signup-shell-form-inner {
    align-items: center;
    justify-content: flex-start;
    max-width: none;
    padding-top: 0;
    position: relative;
    text-align: center;
}

.login-shell.signup-shell:has(.login-recovery-sms) .signup-shell-form-slot,
.login-shell.signup-shell:has(.login-recovery-sms) .login-form-content {
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.login-shell:has(.login-recovery-sms) .signup-verify-back-top {
    left: 0;
    margin: 0;
    position: absolute;
    top: var(--spacing-4);
}

.login-shell.signup-shell:has(.login-recovery-sms) .login-recovery-sms-card {
    align-items: center;
    flex: 0 1 auto;
    justify-content: flex-start;
    width: 100%;
}

.login-shell.signup-shell:has(.login-recovery-sms) .signup-verify-main {
    align-items: center;
    margin-inline: auto;
    text-align: center;
    width: min(100%, 26rem);
}

.login-shell.signup-shell:has(.login-recovery-sms) .signup-verify-main .signup-step-title {
    font-size: var(--font-size-2xl);
    line-height: 1.2;
    margin-bottom: var(--spacing-3);
    text-align: center;
}

.login-shell.signup-shell:has(.login-recovery-sms) .signup-verify-main .signup-step-description,
.login-shell.signup-shell:has(.login-recovery-sms) .login-intro,
.login-shell.signup-shell:has(.login-recovery-sms) .login-recovery-email-missing {
    max-width: none;
    text-align: center;
}

.login-shell.signup-shell:has(.login-recovery-sms) .signup-digit-row {
    justify-content: center;
    margin-bottom: 0;
}

.login-shell.signup-shell:has(.login-recovery-sms) .forgot-password-actions {
    align-items: center;
    align-self: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    justify-content: center;
    margin-top: var(--spacing-4);
    width: 100%;
}

.login-shell.signup-shell:has(.login-recovery-pin) .signup-recovery-pin-entry {
    margin-bottom: 0;
    max-width: 12.5rem;
    width: 12.5rem;
}

.login-shell.signup-shell:has(.login-recovery-pin) .forgot-password-actions {
    justify-content: flex-start;
    margin-top: var(--spacing-4);
    width: auto;
}

.login-shell.signup-shell:has(.login-recovery-pin) .login-recovery-pin-locked .forgot-password-actions {
    margin-top: 0.25rem;
}

.login-shell.signup-shell:has(.login-recovery-pin) .auth-submit-btn.mud-button-root {
    height: var(--tops-input-height);
    min-height: var(--tops-input-height);
    min-width: 0;
    padding-block: 0;
    padding-inline: var(--spacing-4);
    width: auto;
}

.login-shell.signup-shell:has(.login-recovery-pin) .login-mfa-recovery {
    margin: 0.5rem 0 0;
    text-align: left;
}

.login-shell .login-recovery-email-help {
    margin-top: auto;
    padding: var(--spacing-8) 0 var(--spacing-4);
    text-align: center;
    width: 100%;
}

.login-shell .login-recovery-actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.login-shell .login-recovery-actions .mud-button-root {
    min-width: 0;
    white-space: nowrap;
    width: auto;
}

.login-shell .login-mfa-actions {
    align-items: center;
    justify-content: center;
}

.login-shell .login-mfa-recovery {
    color: var(--color-stormy-grey-700);
    font-family: var(--tops-body-font);
    font-size: var(--tops-body-md-size);
    line-height: var(--tops-body-md-line);
    margin: var(--spacing-4) 0 0;
    text-align: center;
    width: 100%;
}

.login-shell .login-mfa-recovery-link {
    background: none;
    border: 0;
    color: var(--color-brand-blue-600);
    cursor: pointer;
    font: inherit;
    font-weight: var(--tops-link-weight);
    padding: 0;
    text-decoration: none;
}

.login-shell .login-mfa-recovery-link:hover,
.login-shell .login-mfa-recovery-link:focus-visible {
    text-decoration: underline;
}

.login-shell .login-mfa-resend.mud-button-root {
    height: var(--tops-btn-min-height);
    min-height: var(--tops-btn-min-height);
    width: auto;
}

.login-shell:has(.forgot-password-back--top) .signup-shell-form-inner {
    justify-content: center;
    position: relative;
}

.login-shell:has(.forgot-password-back--top) .signup-shell-form-slot {
    margin-top: 0;
}

/* Lockout — left-aligned Step 4 text stack; tabs stay visible (4496-26614 / 5189-33700). */
.login-shell:has(.login-lockout-state) .login-shell-form-inner,
.login-shell:has(.login-lockout-state) .auth-mode-tabs-row {
    max-width: 36rem;
    text-align: left;
}

.login-lockout-state {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

/* AT-953 lockout — same brand-blue/50 form surface as the other auth screens. */
.login-shell .signup-shell-form:has(.login-lockout-active),
.login-shell .signup-shell-form-inner:has(.login-lockout-active),
.login-shell .signup-shell-form-slot:has(.login-lockout-active),
.login-shell .login-form-content.login-lockout-active {
    background-color: var(--color-brand-blue-50);
}

.login-form-content.login-lockout-active {
    max-width: 540px;
}

.login-lockout-header {
    margin-bottom: var(--spacing-4, 1rem);
}

.login-lockout-eyebrow {
    color: var(--color-brand-blue-500, #36568f);
    font-family: var(--tops-body-font, "Inter", sans-serif);
    font-size: 11px;
    font-weight: var(--font-weight-medium, 500);
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 var(--spacing-1, 0.25rem);
    text-transform: uppercase;
}

.login-lockout-heading {
    color: var(--color-brand-blue-600, #0f2c52);
    font-family: var(--tops-h1-font, "Manrope", sans-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--spacing-1, 0.25rem);
}

.login-lockout-subtitle {
    color: var(--color-stormy-grey-600, #5e5e61);
    font-family: var(--tops-body-font, "Inter", sans-serif);
    font-size: var(--tops-body-sm-size, 13px);
    font-weight: var(--font-weight-normal, 400);
    line-height: 1.5;
    margin: 0;
}

/* Yellow warning banner for account lockout */
.login-lockout-alert.mud-alert {
    background-color: var(--tops-alert-warning-surface) !important;
    border: 1px solid var(--tops-alert-warning-outline) !important;
    border-radius: var(--spacing-3, 12px);
    padding: 14px 16px;
}

.login-lockout-alert .mud-alert-icon {
    color: var(--tops-alert-warning-ink);
}

.login-lockout-alert-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-lockout-alert-title {
    color: var(--tops-alert-warning-ink);
    font-family: var(--tops-body-font, "Inter", sans-serif);
    font-size: var(--tops-body-sm-size, 13px);
    font-weight: var(--font-weight-medium, 500);
    line-height: 1.5;
}

.login-lockout-alert-body {
    color: var(--tops-alert-warning-ink);
    font-family: var(--tops-body-font, "Inter", sans-serif);
    font-size: var(--tops-body-sm-size, 13px);
    font-weight: var(--font-weight-normal, 400);
    line-height: 1.5;
}

.login-form-content ::deep .login-lockout-cta.mud-button-root,
.login-shell ::deep .login-lockout-cta.mud-button-root {
    min-width: 11.875rem;
    width: auto;
}


/* Wrapper so flyover is positioned under the password field without shifting layout */
.password-field-with-flyover {
    position: relative;
}

/* Password requirements flyover: absolute only inside the field wrapper (signup).
   Outside that wrapper absolute escapes the form card and lands under the footer /
   covers New password (AT-1893 / AT-54 recovery reset). */
.password-requirements-flyover {
    display: none;
}

.password-field-with-flyover .password-requirements-flyover {
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    z-index: 10;
}

.password-field-with-flyover .mud-input-control:hover ~ .password-requirements-flyover.visible {
    display: block;
}

/* Inline checklist for recovery/reset — stays in document flow under New password */
.password-requirements-inline {
    display: block;
    position: static;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.password-requirements-box {
    background: var(--tops-white);
    border: 1px solid var(--tops-divider);
    border-radius: 4px;
    padding: 12px 16px;
    box-shadow: var(--tops-popover-shadow);
}

.password-requirements-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.password-requirements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-requirements-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.password-requirements-list li.met {
    color: var(--tops-success);
}

.password-requirements-list li.unmet {
    color: var(--tops-error);
}

/* Plain-text markers (AT-66 AC-494) — avoid MudIcon sticky Check/Close in WASM. */
.password-requirements-list .req-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    flex: 0 0 1.1rem;
    font-size: 0.95rem;
    font-weight: var(--font-weight-bold, 700);
    line-height: 1;
}

.password-requirements-list .req-marker.met {
    color: var(--tops-success);
}

.password-requirements-list .req-marker.unmet {
    color: var(--tops-error);
}

/* Account summary lists (landing and confirm steps) */
.account-summary-list {
    list-style: disc;
    margin: 0;
    padding-left: 1.25rem;
    color: var(--tops-gray-700);
}

.account-summary-list li {
    margin-bottom: 0.25rem;
}

/* Confirm step summary (definition list layout) */
.confirm-summary-list {
    margin: 0;
    padding: 0;
}

.confirm-summary-list dt {
    color: var(--tops-gray-600);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.confirm-summary-list dt:first-child {
    margin-top: 0;
}

.confirm-summary-list dd {
    color: var(--tops-gray-800);
    font-size: 1rem;
    margin: 0.25rem 0 0 0;
}

/* Utility */
.login-layout .bold {
    font-weight: bold;
}

.login-layout .vertical {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.login-layout .horizontal {
    display: inline-flex;
    width: 100%;
    white-space: nowrap;
}

.login-layout .darkBlue {
    color: var(--login-dark-blue);
}

/* Footer */
.login-footer {
    background-color: var(--login-footer-bg);
    padding: 2rem;
    margin-top: auto;
}

.login-footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.login-footer-brand img,
.login-footer-logo {
    height: 60px;
    width: auto;
}

.login-footer-links {
    flex: 1;
    font-size: 0.9rem;
    padding: 0 1rem;
}

.login-footer-links a {
    color: var(--tops-gray-600-neutral);
    text-decoration: none;
}

.login-footer-links a:hover {
    text-decoration: underline;
}

/* "Cookie settings" (AT-2872) acts in place, so it is a button styled like the footer links. */
.login-footer-links .login-footer-link-button {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.login-footer-links .login-footer-link-button:hover,
.login-footer-links .login-footer-link-button:focus-visible {
    text-decoration: underline;
}

.login-footer-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-footer-badge {
    height: 50px;
    width: auto;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-col-left {
        border-right: none;
        border-bottom: 1px solid var(--tops-divider);
    }

    .login-header-nav {
        padding: 1rem;
    }

    .login-footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Accept-transfer Figma shell (Sign in 4509:27224 look-and-feel) ── */

.login-layout--figma-split {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-brand-blue-700, #031b3b);
}

.auth-split-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    min-height: 0;
}

.auth-split-brand {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-brand-blue-700, #031b3b);
    color: var(--tops-white, #fff);
    overflow: hidden;
}

.auth-split-brand__logo {
    position: absolute;
    top: 2.5rem;
    left: 3rem;
    z-index: 1;
}

.auth-split-brand__logo-img {
    height: 28px;
    width: auto;
    max-width: 280px;
    filter: brightness(0) invert(1);
}

.auth-split-brand__copy {
    position: relative;
    z-index: 1;
    max-width: 26rem;
}

.auth-split-brand__headline {
    margin: 0 0 1rem 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tops-white, #fff);
}

.auth-split-brand__supporting {
    margin: 0;
    font-family: var(--tops-body-font, Inter, sans-serif);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--tops-white, #fff);
    opacity: 0.9;
}

.auth-split-brand__geometry {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% -10%, color-mix(in srgb, var(--tops-white, #fff) 12%, transparent) 0%, transparent 45%),
        radial-gradient(circle at 10% 110%, color-mix(in srgb, var(--tops-white, #fff) 10%, transparent) 0%, transparent 40%);
}

.auth-split-form {
    flex: 1 1 50%;
    min-width: 0;
    background: var(--color-brand-blue-50);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 3rem 2.5rem;
}

/* Accept-invitation: soft ~1in inset on both sides of the white panel; wider form column. */
.login-layout--accept-invitation .auth-split-form {
    padding-left: clamp(1.25rem, 4vw, 1in);
    padding-right: clamp(1.25rem, 4vw, 1in);
}

.login-layout--accept-invitation .auth-split-form__inner {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
}

.login-layout--accept-invitation .login-form-content ::deep .auth-submit-btn.mud-button-root,
.login-layout--accept-invitation .login-form-content ::deep .signup-primary-btn.mud-button-root {
    width: auto;
    min-width: 190px;
    margin-left: auto;
}

.login-layout--accept-invitation .accept-wizard-actions {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.75rem;
    width: 100%;
}

.login-layout--accept-invitation .accept-wizard-actions--primary-only {
    justify-content: flex-end;
}

.login-layout--accept-invitation .accept-wizard-actions .signup-primary-btn {
    margin-left: auto;
}

.login-layout--accept-invitation .signup-back-link {
    align-items: center;
    color: var(--color-brand-blue-600, #0f2c52);
    display: inline-flex;
    flex-shrink: 0;
    font-family: var(--tops-body-font, Inter, sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    gap: 4px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.login-layout--accept-invitation .signup-back-link:hover,
.login-layout--accept-invitation .signup-back-link:focus-visible {
    text-decoration: underline;
}

.login-layout--accept-invitation .signup-back-link:focus-visible {
    outline: 2px solid var(--color-brand-blue-600, #0f2c52);
    outline-offset: 2px;
}

.login-layout--accept-invitation .signup-back-link:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: none;
}

.auth-split-form__toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.auth-split-form__help {
    color: var(--color-brand-blue-600, #0f2c52);
    font-size: 0.95rem;
    text-decoration: none;
}

.auth-split-form__help:hover {
    text-decoration: underline;
}

/* Match SignupLayout: progress pinned above the form slot, top-aligned. */
.auth-split-form__inner {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 34rem;
    width: 100%;
    margin: 0 auto;
    min-height: 0;
}

.auth-split-form__slot {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: none;
    width: 100%;
    margin: var(--spacing-6, 1.5rem) 0 0;
}

.auth-split-footer.login-footer {
    background: var(--color-brand-blue-700, #031b3b);
}

.auth-split-footer .login-footer-links,
.auth-split-footer .login-footer-links a {
    color: var(--tops-white, #fff);
}

.login-layout--figma-split .auth-form-eyebrow {
    margin: 0 0 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tops-gray-600, #6b7280);
}

.login-layout--figma-split .signup-step-title,
.login-layout--figma-split .auth-form-title {
    color: var(--color-brand-blue-700, #031b3b);
    font-family: "Manrope", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.login-layout--figma-split .login-prompt {
    color: var(--tops-gray-600, #6b7280);
    font-size: 0.95rem;
    margin: 0 0 1.25rem 0;
}

.login-layout--figma-split .signup-step-label {
    margin: 0 0 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tops-gray-600, #6b7280);
}

.login-layout--figma-split .signup-progress {
    margin-top: 0;
    width: 100%;
}

.login-layout--figma-split .signup-progress-label {
    color: var(--color-brand-blue-500, #1e4a8a);
    font-family: var(--tops-body-font, Inter, sans-serif);
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: var(--font-weight-semibold, 600);
    letter-spacing: 0.44px;
    line-height: 1.2;
    margin: 14px 0 0;
    text-transform: uppercase;
}

/* Accept recovery: no blue tint; flush with page heading; space above field labels. */
.login-layout--figma-split .signup-recovery-section {
    background-color: transparent;
    border-radius: 0;
    margin: 0 0 var(--spacing-6, 1.5rem);
    padding: 0;
    position: relative;
    z-index: 2;
}

.login-layout--figma-split .signup-recovery-section input,
.login-layout--figma-split .signup-recovery-section .mud-input-slot {
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.login-layout--figma-split .signup-recovery-section .mud-input-control {
    pointer-events: auto;
    position: relative;
}

.login-layout--figma-split .signup-recovery-section .mud-input.mud-input-outlined,
.login-layout--figma-split .signup-recovery-section .mud-input-control .mud-input.mud-input-outlined,
.login-layout--figma-split .signup-recovery-section input.mud-input-slot {
    background-color: var(--color-white-100, #fff) !important;
    color: var(--color-brand-blue-700, #031b3b) !important;
}

/* Keep outlined field borders visible (PIN / Confirm PIN / backup email|phone).
   Fieldset must sit above the white input slot (z-index 3) or the border is painted under it. */
.login-layout--figma-split .signup-recovery-section .mud-input-outlined-border,
.login-layout--figma-split .signup-recovery-section fieldset.mud-input-outlined-border,
.login-layout--figma-split .signup-recovery-section .mud-input.mud-input-outlined .mud-input-outlined-border {
    border: 1px solid var(--color-stormy-grey-400, #9ca3af) !important;
    background-color: transparent !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.login-layout--figma-split .signup-recovery-section .mud-input-outlined:hover .mud-input-outlined-border,
.login-layout--figma-split .signup-recovery-section .mud-input.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: var(--color-brand-blue-600, #0f2c52) !important;
}

.login-layout--figma-split .signup-recovery-section .mud-input-outlined:focus-within .mud-input-outlined-border,
.login-layout--figma-split .signup-recovery-section .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border,
.login-layout--figma-split .signup-recovery-section .mud-input.mud-input-focused .mud-input-outlined-border {
    border-color: var(--color-brand-blue-600, #0f2c52) !important;
}

.login-layout--figma-split .signup-recovery-pin-fields,
.login-layout--figma-split .signup-recovery-backup-fields {
    margin-top: 0.5rem;
}

.login-layout--figma-split .signup-recovery-pin-fields > div,
.login-layout--figma-split .signup-recovery-backup-fields > .mud-input-control {
    margin-top: 0.75rem;
}

.login-layout--figma-split:not(.login-layout--accept-invitation) .signup-recovery-pin-fields {
    display: grid;
    gap: var(--spacing-4, 1rem);
    grid-template-columns: repeat(2, minmax(0, 9.5rem));
    width: max-content;
    max-width: 100%;
}

/* Accept-invitation: full-width PIN + Confirm (equal halves, gap between). Placed after
   figma-split defaults so width/grid are not left at 9.5rem / max-content. */
.login-layout--figma-split.login-layout--accept-invitation .signup-recovery-pin-fields {
    display: grid;
    gap: var(--spacing-4, 1rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 0.5rem;
    max-width: 100%;
    width: 100%;
}

.login-layout--figma-split.login-layout--accept-invitation .signup-recovery-pin-fields > div {
    margin-top: 0;
    min-width: 0;
    width: 100%;
}

.login-layout--figma-split.login-layout--accept-invitation .signup-recovery-pin-fields .mud-input-control,
.login-layout--figma-split.login-layout--accept-invitation .signup-recovery-pin-fields .mud-input-control-root {
    max-width: none;
    width: 100%;
}

.login-layout--figma-split .signup-recovery-backup-fields {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4, 1rem);
}

/* Figma EmalOrSMSSelector — single bordered segment control, SMS filled when selected. */
.login-layout--figma-split .signup-recovery-backup-toggle.mud-toggle-group {
    background: var(--color-white-100, #fff) !important;
    border: 1px solid var(--color-brand-blue-600, #0f2c52) !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    gap: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 14rem;
}

.login-layout--figma-split .signup-recovery-backup-toggle .mud-toggle-item {
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--color-brand-blue-700, #031b3b) !important;
    flex: 1 1 0 !important;
    font-weight: 500 !important;
    min-height: 2.5rem !important;
    min-width: 0 !important;
    padding: 0 1.75rem !important;
}

.login-layout--figma-split .signup-recovery-backup-toggle .mud-toggle-item:first-child,
.login-layout--figma-split .signup-recovery-backup-toggle .mud-toggle-item:last-child {
    border-radius: 0 !important;
    border-right: 0 !important;
}

.login-layout--figma-split .signup-recovery-backup-toggle .mud-toggle-item-selected,
.login-layout--figma-split .signup-recovery-backup-toggle .mud-toggle-item.mud-selected {
    background-color: var(--color-brand-blue-600, #0f2c52) !important;
    border-color: transparent !important;
    color: var(--color-white-100, #fff) !important;
}

.login-layout--figma-split .account-summary-list {
    margin: 0;
    padding-left: 1.25rem;
}

.login-layout--figma-split .accept-summary-panel {
    border: 1px solid var(--tops-divider, #e5e7eb);
    border-radius: var(--spacing-2, 0.5rem);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: var(--tops-white, #fff);
}

@media (max-width: 900px) {
    .auth-split-main {
        flex-direction: column;
    }

    .auth-split-brand {
        flex: 0 0 auto;
        min-height: 12rem;
        padding: 1.5rem;
        justify-content: flex-end;
    }

    .auth-split-brand__logo {
        top: 1.25rem;
        left: 1.5rem;
    }

    .auth-split-form {
        padding: 1.25rem 1.5rem 2rem;
    }

    .login-layout--figma-split:not(.login-layout--accept-invitation) .signup-recovery-pin-fields {
        grid-template-columns: minmax(0, 9.5rem);
    }
}

@media (max-width: 600px) {
    .login-layout--figma-split.login-layout--accept-invitation .signup-recovery-pin-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.login-shell.signup-shell .login-accept-landing {
    text-align: left;
    width: min(100%, 33.5rem);
}

.login-shell.signup-shell .login-accept-landing .login-intro {
    margin-bottom: var(--spacing-3);
    max-width: none;
    text-align: left;
}

.login-shell.signup-shell .login-accept-landing .accept-summary-panel {
    background: var(--color-white-100, #fff);
    border: 1px solid var(--tops-divider, #e5e7eb);
    border-radius: var(--spacing-2, 0.5rem);
    margin-bottom: var(--spacing-4);
    padding: 1rem 1.25rem;
}

.login-shell.signup-shell .login-accept-landing .accept-summary-panel .login-intro {
    font-weight: var(--font-weight-semibold, 600);
    margin-bottom: var(--spacing-2);
}

.login-shell.signup-shell .login-accept-landing .account-summary-list {
    color: var(--color-stormy-grey-600);
    font-size: var(--tops-body-sm-size);
    line-height: 1.5;
    margin: 0;
    padding-left: 1.25rem;
}

.login-shell.signup-shell .login-accept-landing .login-recovery-email-missing,
.login-shell.signup-shell .login-accept-landing .forgot-password-actions + .login-intro {
    margin-top: var(--spacing-3);
    margin-bottom: 0;
}

.login-shell.signup-shell .login-accept-landing .forgot-password-actions {
    justify-content: flex-start;
    margin-top: var(--spacing-4);
    width: auto;
}

.login-shell.signup-shell .login-accept-landing .forgot-password-actions .mud-button-root {
    min-width: 0;
    width: auto;
}

