/* Desktop auth positioning: keep the compact sign-in/sign-up card visually attached to the header auth actions. */
@media (min-width: 981px) {
    .public-auth-main {
        width: min(1280px, calc(100% - 48px)) !important;
        align-items: start !important;
        padding-top: 12px !important;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 390px) !important;
        gap: 72px !important;
    }

    .public-auth-card {
        justify-self: end;
        width: 100%;
        max-width: 390px;
        margin-top: 0;
    }

    .public-auth-intro {
        margin-top: 150px;
    }
}

/* Tablet/mobile stays stacked and natural. */
@media (max-width: 980px) {
    .public-auth-main {
        align-items: stretch !important;
    }

    .public-auth-intro {
        margin-top: 0;
    }

    .public-auth-card {
        justify-self: stretch;
        max-width: none;
    }
}
