@layer pages {
/* Shared login/verify auth pages. Components own the controls; this file only
   sets the Figma page column, spacing, and mobile/desktop footer split. */

.psw-auth {
    --auth-mobile-column: 343px;
    --auth-desktop-width: 1128px;
    --auth-desktop-column: 580px;
    min-height: 100vh;
    background: var(--color-white);
    color: var(--color-gray-700);
}

.psw-auth__shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* One-CTA footer height (psw-footer.css) + the 24px content-to-footer gap
       every mobile screen keeps; safe-area rides inside the token. */
    padding: var(--space-4) 0 calc(var(--psw-footer-height) + var(--space-6));
}

.psw-auth__header {
    width: 100%;
    padding-inline: var(--space-4);
}

.psw-auth__form {
    width: calc(100% - var(--space-8));
    max-width: var(--auth-mobile-column);
    margin: var(--space-8) auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.psw-auth__form--login {
    /* workflow_header already owns the full 12px visual gap below its nav row. */
    margin-top: 0;
    gap: var(--space-10);
}

.psw-auth__form--verify {
    margin-top: 0;
    gap: 0;
}

.psw-auth__hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    text-align: center;
}

.psw-auth__copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
}

.psw-auth__title,
.psw-auth__subtitle,
.psw-auth__inline-action,
.psw-auth__fineprint {
    max-width: calc(100% - var(--space-8));
    margin: 0;
    font-family: var(--font-sans);
}

.psw-auth__title {
    font-size: var(--text-heading-sm);
    line-height: var(--text-heading-sm--line-height);
    font-weight: var(--font-weight-bold);
}

.psw-auth__subtitle {
    font-size: var(--text-paragraph-md);
    line-height: var(--text-paragraph-md--line-height);
    font-weight: var(--font-weight-regular);
    color: var(--color-gray-600);
}

.psw-auth__field,
.psw-auth__code,
.psw-auth__login-fields,
.psw-auth__login-actions,
.psw-auth__desktop-action,
.psw-auth__desktop-branding {
    width: 100%;
}

.psw-auth__login-fields,
.psw-auth__login-actions {
    flex-direction: column;
    align-items: center;
}

.psw-auth__login-fields {
    display: flex;
    gap: var(--space-4);
}

.psw-auth__login-actions {
    display: none;
    gap: var(--space-6);
}

.psw-auth__fineprint {
    font-size: var(--text-paragraph-sm);
    line-height: var(--text-paragraph-sm--line-height);
    font-weight: var(--font-weight-regular);
    color: var(--color-gray-600);
    text-align: center;
}

.psw-auth__inline-action {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 var(--space-1);
    font-size: var(--text-paragraph-md);
    line-height: var(--text-paragraph-md--line-height);
    font-weight: var(--font-weight-regular);
    color: var(--color-gray-600);
    text-align: center;
}

.psw-auth__inline-action-label {
    font-size: var(--text-paragraph-md);
    line-height: var(--text-paragraph-md--line-height);
}

.psw-auth__inline-action .psw-btn--tertiary-link {
    font-size: var(--text-label-md);
    line-height: var(--text-label-md--line-height);
}

.psw-auth__form--verify .psw-auth__code {
    margin-top: var(--space-10);
}

.psw-auth__form--verify .psw-auth__inline-action {
    margin-top: var(--space-4);
}

.psw-auth__desktop-action,
.psw-auth__desktop-branding {
    display: none;
}

@media (min-width: 769px) {
    .psw-auth__shell {
        max-width: var(--auth-desktop-width);
        margin: 0 auto;
        padding: var(--space-8) 0 var(--space-8);
    }

    .psw-auth__header {
        max-width: var(--auth-desktop-column);
        padding-inline: 0;
    }

    .psw-auth__form {
        width: 100%;
        max-width: var(--auth-desktop-column);
        margin-top: var(--space-8);
        padding: 0;
        gap: var(--space-4);
    }

    .psw-auth__form--login {
        gap: var(--space-10);
    }

    .psw-auth__form--verify {
        gap: 0;
    }

    .psw-auth__hero {
        gap: var(--space-6);
        margin-bottom: var(--space-4);
    }

    .psw-auth__form--verify .psw-auth__hero {
        margin-bottom: 0;
    }

    .psw-auth__copy {
        gap: var(--space-4);
    }

    .psw-auth__title {
        max-width: none;
        font-size: var(--text-heading-lg);
        line-height: var(--text-heading-lg--line-height);
    }

    .psw-auth__subtitle,
    .psw-auth__inline-action,
    .psw-auth__fineprint {
        max-width: none;
    }

    .psw-auth__inline-action {
        margin-top: calc(-1 * var(--space-1));
    }

    .psw-auth__form--verify .psw-auth__inline-action {
        margin-top: var(--space-10);
    }

    .psw-auth__form--verify .psw-auth__desktop-action {
        margin-top: var(--space-10);
    }

    .psw-auth__form--verify .psw-auth__desktop-branding {
        margin-top: var(--space-6);
    }

    .psw-auth__form--login .psw-auth__hero,
    .psw-auth__form--login .psw-auth__inline-action,
    .psw-auth__login-actions .psw-auth__desktop-action,
    .psw-auth__login-actions .psw-auth__desktop-branding {
        margin-top: 0;
        margin-bottom: 0;
    }

    .psw-auth__login-actions {
        display: flex;
    }

    .psw-auth__desktop-action {
        display: block;
        margin-top: var(--space-4);
    }

    .psw-auth__desktop-branding {
        display: block;
        margin-top: var(--space-2);
    }
}
}
