.auth-shell--login-one-page {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(.3rem, .8vh, .65rem);
    overflow: hidden;
    padding:
        max(.65rem, env(safe-area-inset-top))
        max(.8rem, env(safe-area-inset-right))
        max(.65rem, env(safe-area-inset-bottom))
        max(.8rem, env(safe-area-inset-left));
    background:
        radial-gradient(circle at 92% 4%, rgb(245 34 25 / 10%), transparent 26rem),
        radial-gradient(circle at 5% 96%, rgb(8 125 117 / 10%), transparent 24rem),
        #f5f7f6;
}

.auth-shell--login-one-page .brand {
    width: fit-content;
    min-height: 2.1rem;
    font-size: clamp(1.65rem, 6vw, 2rem);
    line-height: 1;
}

.auth-login-panel--one-page {
    width: min(100%, 31rem);
    height: 100%;
    min-height: 0;
    display: grid;
    align-self: stretch;
    align-content: center;
    gap: clamp(.28rem, .72vh, .58rem);
    margin: 0 auto;
}

.auth-login-panel--one-page > .eyebrow {
    margin: 0;
    font-size: .65rem;
    line-height: 1.1;
}

.auth-login-panel--one-page h1 {
    margin: 0;
    font-size: clamp(1.65rem, 6vw, 2.35rem);
    line-height: 1;
}

.auth-login-panel--one-page > .auth-login-intro {
    margin: 0;
    font-size: .76rem;
    line-height: 1.25;
}

.auth-login-panel--one-page .auth-intro,
.auth-login-panel--one-page .form-error,
.auth-login-panel--one-page .form-success {
    margin: 0;
    padding: .45rem .65rem;
    font-size: .72rem;
    line-height: 1.25;
}

.auth-space-switcher--one-page {
    gap: .38rem;
    margin: 0;
}

.auth-space-switcher--one-page .auth-space-link {
    min-height: 3.35rem;
    gap: .38rem;
    padding: .4rem .48rem;
    border-radius: .75rem;
}

.auth-space-switcher--one-page .auth-space-monogram {
    width: 1.55rem;
    height: 1.55rem;
    font-size: .64rem;
}

.auth-space-switcher--one-page .auth-space-copy strong { font-size: .72rem; }
.auth-space-switcher--one-page .auth-space-copy small { font-size: .62rem; }

.auth-space-context--one-page {
    min-height: 0;
    margin: 0;
    padding: .42rem .62rem;
    font-size: .7rem;
    line-height: 1.25;
}

.auth-alternatives--one-page {
    gap: clamp(.25rem, .65vh, .48rem);
}

.oauth-login-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
}

.oauth-login-grid:empty { display: none; }
.oauth-login-grid > :only-child { grid-column: 1 / -1; }

.oauth-login-grid .oauth-login-button,
.oauth-login-grid .oauth-provider-state {
    min-width: 0;
    min-height: 2.8rem;
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr);
    align-items: center;
    gap: .45rem;
    padding: .4rem .58rem;
    border-radius: .7rem;
    font-size: .75rem;
    line-height: 1.15;
}

.oauth-login-grid .oauth-login-button::after { display: none; }
.oauth-login-grid .oauth-provider-icon { width: 1.1rem; height: 1.1rem; }
.oauth-login-grid .oauth-provider-state strong { font-size: .72rem; }
.oauth-login-grid .oauth-provider-state small { margin-top: .04rem; font-size: .6rem; line-height: 1.15; }

.auth-login-panel--one-page .passkey-login { display: grid; gap: .16rem; }

.auth-login-panel--one-page .passkey-button:not([hidden]) {
    min-height: 2.8rem;
    grid-template-columns: 1.15rem minmax(0, 1fr) 1.15rem;
    gap: .45rem;
    padding: .4rem .68rem;
    border-radius: .7rem;
    font-size: .77rem;
}

.auth-login-panel--one-page .passkey-button::after { width: 1.15rem; }
.auth-login-panel--one-page .passkey-button svg { width: 1.1rem; height: 1.1rem; }

.auth-login-panel--one-page .passkey-explanation,
.auth-login-panel--one-page .passkey-unavailable,
.auth-login-panel--one-page .passkey-status {
    font-size: .66rem;
    line-height: 1.2;
}

.auth-login-panel--one-page .auth-divider {
    gap: .5rem;
    margin: .02rem 0;
    font-size: .64rem;
    line-height: 1.15;
}

.auth-form--login-one-page { display: grid; gap: .26rem; }
.auth-form--login-one-page label { margin: 0; font-size: .72rem; }

.auth-form--login-one-page input,
.auth-form--login-one-page > button[type="submit"] {
    min-height: 2.8rem;
    border-radius: .7rem;
}

.auth-form--login-one-page input { padding: 0 .75rem; }
.auth-form--login-one-page > button[type="submit"] { width: 100%; margin-top: .05rem; }

.auth-form--login-one-page .password-visibility-toggle--icon {
    top: 0;
    right: 0;
    width: 2.8rem;
    min-height: 2.8rem;
    border-radius: .65rem;
}

.auth-login-links {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .2rem .65rem;
}

.auth-login-links .auth-links { margin: 0; font-size: .66rem; line-height: 1.15; }
.auth-login-links .auth-links:last-child { text-align: right; }
.auth-login-links .auth-links a { min-height: 1.8rem; }

@media (max-width: 31.25rem) {
    .auth-space-switcher--one-page .auth-space-link {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: .12rem;
        padding: .28rem .2rem;
        text-align: center;
    }

    .auth-space-switcher--one-page .auth-space-copy small { display: none; }
}

@media (max-width: 21.25rem) {
    .oauth-login-grid { grid-template-columns: 1fr; }
    .oauth-login-grid > * { grid-column: 1; }
    .auth-login-links { justify-content: center; flex-wrap: wrap; }
    .auth-login-links .auth-links:last-child { text-align: center; }
}

@media (max-height: 43.75rem) and (min-width: 21.875rem) {
    .auth-login-panel--one-page > .eyebrow,
    .auth-login-panel--one-page > .auth-login-intro { display: none; }

    .auth-form--login-one-page {
        grid-template-areas:
            "email-label password-label"
            "email-field password-field"
            "submit submit"
            "links links";
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .2rem .4rem;
    }

    .auth-form--login-one-page label[for="username"] { grid-area: email-label; }
    .auth-form--login-one-page #username { grid-area: email-field; }
    .auth-form--login-one-page label[for="password"] { grid-area: password-label; }
    .auth-form--login-one-page .password-field { grid-area: password-field; }
    .auth-form--login-one-page > button[type="submit"] { grid-area: submit; }
    .auth-form--login-one-page .auth-login-links { grid-area: links; }
}

@media (max-height: 32.5rem) {
    .auth-shell--login-one-page { height: auto; min-height: 100dvh; overflow-y: auto; }
    .auth-login-panel--one-page { height: auto; align-content: start; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-shell--login-one-page *,
    .auth-shell--login-one-page *::before,
    .auth-shell--login-one-page *::after { scroll-behavior: auto !important; }
}
