/*
 * Login card (template-parts/auth/login-form.php) and the quiet page around
 * it (template-parts/auth/quiet-page.php): /login/, /lost-password/,
 * /reset-password/. Soofos Design lab: login-page B, login-popup D.
 * Tokens only (tokens.css). Desktop: two columns (blue panel + form);
 * up to 860px: one column, the panel becomes a blue band on top.
 */

/* ---------- Quiet page ---------- */
body.soofos-login {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--canvas);
    color: var(--body);
    font-family: var(--font);
}

.sf-auth-top {
    display: flex;
    justify-content: center;
    padding: 32px 24px 0;
}

.sf-auth-top__logo {
    display: inline-flex;
    border-radius: var(--r-card-sm);
}

.sf-auth-top__logo img {
    width: auto;
    height: 56px;
}

.sf-auth-page {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 24px 80px;
}

.sf-auth-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    padding: 0 24px 32px;
    color: var(--muted);
    font-size: 14px;
}

.sf-auth-foot nav {
    display: flex;
    gap: 20px;
}

.sf-auth-foot a,
.sf-auth-foot .consent-preferences {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.sf-auth-foot a:hover,
.sf-auth-foot .consent-preferences:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sf-auth-foot .consent-preferences:focus-visible {
    outline: 2px solid var(--deep-blue);
    outline-offset: 2px;
}

/* ---------- Card ---------- */
.sf-auth {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 380px 1fr;
    width: min(900px, 100%);
    overflow: hidden;
    border-radius: var(--r-card-lg);
    background: var(--white);
    box-shadow: var(--shadow-float);
    color: var(--body);
    font-family: var(--font);
}

.sf-auth :focus-visible {
    outline: 2px solid var(--deep-blue);
    outline-offset: 2px;
}

.sf-auth__title:focus {
    outline: none;
}

/* ---------- Panel ---------- */
.sf-auth__aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
    background: var(--blue);
    color: var(--on-navy);
}

/*
 * DESIGN-SYSTEM EXCEPTION (LG26, waiting for Anton's ruling): the panel uses
 * the logo gradient (CLAUDE.md: no decorative gradients). To drop it, delete
 * this block: the panel falls back to the solid brand blue above.
 */
.sf-auth__aside {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-hover) 100%);
}
/* end of the LG26 exception */

.sf-auth__wave {
    font-size: 34px;
    line-height: 1;
}

.sf-auth__welcome {
    margin: 14px 0 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 25%, transparent);
}

.sf-auth__welcome::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 16px 0 14px;
    border-radius: var(--r-pill);
    background: var(--on-navy);
}

.sf-auth__tagline {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-wrap: balance;
    text-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 25%, transparent);
}

.sf-auth__perks {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 25%, transparent);
}

.sf-auth__perks[hidden] {
    display: none;
}

.sf-auth__perks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.sf-auth__perks .sf-icon {
    flex: none;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    padding: 4px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--on-navy) 22%, transparent);
    stroke-width: 3;
}

/* ---------- Form side ---------- */
.sf-auth__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 600px;
    padding: 44px 56px;
}

.sf-auth__view,
.sf-auth__notice {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
}

.sf-auth__view {
    animation: sf-auth-fade .16s ease-out;
}

.sf-auth__notice[hidden],
.sf-auth__view[hidden] {
    display: none;
}

.sf-auth__head {
    margin: 0 0 18px;
}

.sf-auth__view[data-view="login"] .sf-auth__head {
    margin-bottom: 16px;
}

.sf-auth__title {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.sf-auth__sub {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.sf-auth__sub strong {
    color: var(--ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.sf-auth__sub + .sf-auth__sub {
    margin-top: 10px;
}

.sf-auth__sub--small {
    font-size: 15px;
}

.sf-auth__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    margin: -10px 0 4px -14px;
    padding: 0 8px;
    border-radius: var(--r-btn);
    color: var(--deep-blue);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.sf-auth__back:hover {
    text-decoration: underline;
}

.sf-auth__back .sf-icon {
    width: 18px;
    height: 18px;
}

/* Notice above the steps: green = done, amber = warning. */
.sf-auth__notice {
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: var(--r-card-sm);
    background: var(--green-fill);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.45;
}

.sf-auth__notice p {
    margin: 0;
}

.sf-auth__notice .sf-icon {
    flex: none;
    color: var(--green-ink);
}

.sf-auth__notice--warn {
    background: var(--amber-fill);
}

.sf-auth__notice strong {
    font-weight: 700;
}

/* Fortress's message on the login step (too many attempts): its "log in without waiting" link. */
.sf-auth__notice a {
    color: var(--deep-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sf-auth__notice--warn .sf-icon {
    box-sizing: content-box;
    width: 16px;
    height: 16px;
    padding: 4px;
    border-radius: 6px;
    background: var(--amber);
    color: var(--ink);
}

/* ---------- Fields ---------- */
.sf-auth__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.sf-auth__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sf-auth__label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.sf-auth__input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--field-line);
    border-radius: var(--r-btn);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.sf-auth__input:hover {
    border-color: var(--muted);
}

.sf-auth__input:focus {
    border-color: var(--deep-blue);
    outline: none;
    box-shadow: 0 0 0 1px var(--deep-blue), 0 0 0 4px var(--blue-fill);
}

.sf-auth__input[aria-invalid="true"] {
    border-color: var(--error);
}

.sf-auth__input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 1px var(--error), 0 0 0 4px var(--red-fill);
}

.sf-auth__pass {
    position: relative;
}

.sf-auth--js .sf-auth__pass .sf-auth__input {
    padding-right: 52px;
}

.sf-auth__eye {
    position: absolute;
    top: 0;
    right: 2px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--r-btn);
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.sf-auth__eye:hover,
.sf-auth__eye[aria-pressed="true"] {
    color: var(--deep-blue);
}

/* Script-only controls stay hidden until login-form.js runs. */
.sf-auth:not(.sf-auth--js) .sf-auth__js {
    display: none;
}

/* Message under a field (role=alert). */
.sf-auth__msg {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin: 2px 0 0;
    color: var(--error);
    font-size: 15px;
    line-height: 1.45;
}

.sf-auth__msg[hidden],
.sf-auth__msg:empty {
    display: none;
}

.sf-auth__msg::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "Did you mean …?" under an email field. */
.sf-auth__hint {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.45;
}

.sf-auth__hint[hidden] {
    display: none;
}

.sf-auth__inline {
    margin: -10px -2px;
    padding: 10px 2px;
    border: 0;
    background: none;
    color: var(--deep-blue);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* Password rule on the new-password step: turns green once met. */
.sf-auth__rule {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.sf-auth__rule[hidden] {
    display: none;
}

.sf-auth__rule .sf-icon {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    opacity: .35;
}

.sf-auth__rule.is-ok {
    color: var(--green-ink);
}

.sf-auth__rule.is-ok .sf-icon {
    opacity: 1;
}

/* Caps Lock: amber field edge with a key inside, and a callout under it. */
.sf-auth__caps {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 8px 0 0;
    padding: 8px 12px;
    border-radius: var(--r-card-sm);
    background: var(--amber-fill);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.4;
}

.sf-auth__caps[hidden] {
    display: none;
}

.sf-auth__caps::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: var(--amber-fill);
    transform: rotate(45deg);
}

.sf-auth__caps .sf-icon {
    flex: none;
    box-sizing: content-box;
    width: 16px;
    height: 16px;
    padding: 4px;
    border-radius: 6px;
    background: var(--amber);
    color: var(--ink);
}

.sf-auth__caps strong {
    font-weight: 800;
}

.sf-auth__pass.is-caps .sf-auth__input {
    border-color: var(--amber-ink);
    box-shadow: 0 0 0 3px var(--amber-fill);
}

.sf-auth__caps-key {
    position: absolute;
    top: 50%;
    right: 52px;
    display: none;
    color: var(--amber-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
}

.sf-auth__pass.is-caps .sf-auth__caps-key {
    display: block;
}

/* ---------- Row, links, buttons ---------- */
.sf-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0;
}

.sf-auth__remember {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--body);
    font-size: 14px;
    cursor: pointer;
}

.sf-auth__remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--deep-blue);
}

.sf-auth__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 -8px 0 0;
    padding: 0 8px;
    border-radius: var(--r-btn);
    color: var(--deep-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sf-auth__link:hover {
    text-decoration: underline;
}

.sf-auth__submit {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--r-btn);
    background: var(--red);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--red) 24%, transparent);
    color: var(--on-navy);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease-out;
}

.sf-auth__submit:hover {
    background: var(--red-hover);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--red) 32%, transparent);
}

.sf-auth__submit:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* Busy: a spinner and "One moment…" until the next page loads. */
.sf-auth__submit[aria-busy="true"] {
    pointer-events: none;
}

.sf-auth__submit[aria-busy="true"]::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid color-mix(in srgb, var(--on-navy) 40%, transparent);
    border-top-color: var(--on-navy);
    border-radius: 50%;
    animation: sf-auth-spin .8s linear infinite;
}

/* "Last used" tab on the button you logged in with last time. */
.sf-auth__last {
    position: absolute;
    right: -1px;
    bottom: calc(100% - 4px);
    left: -1px;
    padding: 2px 4px 1px;
    border: 1px solid var(--blue);
    border-bottom: 0;
    border-radius: var(--r-btn) var(--r-btn) 0 0;
    background: var(--blue-fill);
    color: var(--deep-blue);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

/* "Email me a login link instead" (Fortress's link, when Fortress is active). */
.sf-auth__alt {
    margin: 6px 0 0;
    text-align: center;
}

.sf-auth__alt a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    border-radius: var(--r-btn);
    color: var(--deep-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sf-auth__alt a:hover {
    text-decoration: underline;
}

.sf-auth__alt .sf-auth__last {
    position: static;
    display: inline-block;
    margin-left: 6px;
    padding: 0 7px;
    border: 0;
    border-radius: var(--r-pill);
    line-height: 17px;
    vertical-align: 1px;
}

/* Open-mail button on the sent step: white, like a secondary button. */
.sf-auth__submit.sf-auth__mailapp {
    border: 1px solid var(--field-line);
    background: var(--white);
    box-shadow: none;
    color: var(--ink);
}

.sf-auth__submit.sf-auth__mailapp:hover {
    border-color: var(--deep-blue);
    background: var(--blue-tint);
    box-shadow: none;
}

.sf-auth__submit.sf-auth__mailapp[hidden] {
    display: none;
}

.sf-auth__mailapp .sf-icon {
    flex: none;
    color: var(--deep-blue);
}

.sf-auth__note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.sf-auth__back-login {
    margin-top: 4px;
}

.sf-auth__view[data-view="reset"] .sf-auth__note {
    margin-top: 20px;
}

.sf-auth__foot {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--card-border);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.sf-auth__foot a {
    color: var(--deep-blue);
    font-weight: 700;
    text-decoration: none;
}

.sf-auth__foot a:hover {
    text-decoration: underline;
}

/* ---------- Tablet and phone: one column, the panel is a band on top ---------- */
@media (max-width: 860px) {
    .sf-auth-top {
        padding-top: 28px;
    }

    .sf-auth-page {
        padding: 44px 24px 64px;
    }

    .sf-auth {
        display: block;
        width: min(480px, 100%);
    }

    .sf-auth__aside {
        display: block;
        padding: 24px;
    }

    .sf-auth__wave {
        display: block;
        font-size: 30px;
    }

    .sf-auth__welcome {
        margin: 8px 0 0;
        font-size: 22px;
    }

    .sf-auth__welcome::after,
    .sf-auth__tagline,
    .sf-auth__perks {
        display: none;
    }

    .sf-auth__main {
        min-height: 0;
        padding: 26px 28px 20px;
    }
}

@media (max-width: 640px) {
    .sf-auth-top {
        padding: 20px 16px 0;
    }

    .sf-auth-top__logo img {
        height: 48px;
    }

    .sf-auth-page {
        padding: 28px 16px 40px;
    }

    .sf-auth {
        width: 100%;
    }

    .sf-auth__aside {
        padding: 20px 16px;
    }

    .sf-auth__main {
        padding: 24px 16px 16px;
    }

    .sf-auth__notice {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .sf-auth__foot {
        margin-top: 14px;
        padding-top: 12px;
    }

    .sf-auth-foot {
        padding-bottom: 24px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-auth__view {
        animation: none;
    }

    .sf-auth__submit[aria-busy="true"]::before {
        animation-duration: 2.4s;
    }
}

/* ---------- Fortress's login-link block on the page (login-form.js moves it under the form) ---------- */
.sf-auth__fortress {
    margin: 6px 0 0;
    text-align: center;
}

.sf-auth__fortress .login-form-divider {
    display: none;
}

.sf-auth__fortress p {
    margin: 0;
}

.sf-auth__fortress a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--r-btn);
    background: none;
    box-shadow: none;
    color: var(--deep-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sf-auth__fortress a:hover {
    background: none;
    color: var(--deep-blue);
    text-decoration: underline;
}

.sf-auth__fortress .sf-auth__last {
    position: static;
    display: inline-block;
    margin-left: 6px;
    padding: 0 7px;
    border: 0;
    border-radius: var(--r-pill);
    line-height: 17px;
    vertical-align: 1px;
}

/* ---------- Login popup (template-parts/auth/login-popup.php; lab login-popup D) ---------- */
html.sf-auth-open {
    overflow: hidden;
}

.sf-auth-dialog {
    position: fixed;
    box-sizing: border-box;
    width: min(760px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: var(--r-card-lg);
    background: transparent;
    overscroll-behavior: contain;
}

.sf-auth-dialog[open] {
    animation: sf-auth-in .2s ease-out;
}

.sf-auth-dialog.is-closing {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .22s ease-in, transform .22s ease-in;
}

.sf-auth-dialog::backdrop {
    background: rgba(16, 33, 58, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: sf-auth-fade .24s ease-out;
}

.sf-auth-dialog .sf-auth {
    grid-template-columns: 300px 1fr;
    width: 100%;
    box-shadow: var(--shadow-pop);
}

.sf-auth-dialog .sf-auth__aside {
    padding: 32px 36px;
}

.sf-auth-dialog .sf-auth__main {
    min-height: 0;
    padding: 36px 40px 28px;
}

.sf-auth-dialog .sf-auth__perks {
    display: none;
}

.sf-auth-dialog__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.sf-auth-dialog__close:hover {
    background: var(--canvas);
    color: var(--ink);
}

.sf-auth-dialog__close:focus-visible {
    outline: 2px solid var(--deep-blue);
    outline-offset: 2px;
}

/* The expired notice sits between the title and the form. */
.sf-auth-dialog [data-sf-auth-expired] {
    margin: -8px 0 20px;
}

/* ---------- "You're logged out. See you soon!" (lab logout-home B) ---------- */
.sf-logout-toast {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: 50%;
    z-index: 1000;
    display: flex;
    gap: 12px;
    align-items: center;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 12px 8px 12px 16px;
    border: 1px solid var(--blue-border);
    border-radius: var(--r-card-sm);
    background: var(--white);
    box-shadow: var(--shadow-pop);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.4;
    transform: translateX(-50%);
    animation: sf-logout-in .28s ease-out;
}

.sf-logout-toast p {
    margin: 0;
}

.sf-logout-toast strong {
    font-weight: 800;
}

.sf-logout-toast > .sf-icon {
    flex: none;
    color: var(--green-ink);
}

.sf-logout-toast__close {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.sf-logout-toast__close:hover {
    background: var(--blue-tint);
    color: var(--ink);
}

.sf-logout-toast.is-leaving {
    opacity: 0;
    transition: opacity .3s ease-in;
}

/* Popup on tablet and phone: one column, the panel is a band on top (as on the page), the close button on it. */
@media (max-width: 860px) {
    .sf-auth-dialog {
        width: min(480px, calc(100vw - 32px));
    }

    .sf-auth-dialog .sf-auth__main {
        padding: 26px 28px 20px;
    }

    .sf-auth-dialog__close {
        top: 12px;
        right: 10px;
        color: var(--on-navy);
    }

    .sf-auth-dialog__close:hover {
        background: rgba(255, 255, 255, .16);
        color: var(--on-navy);
    }

    .sf-auth-dialog__close:focus-visible {
        outline-color: var(--on-navy);
    }
}

@media (max-width: 640px) {
    .sf-auth-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
    }

    .sf-auth-dialog .sf-auth__aside {
        padding: 20px 16px;
    }

    .sf-auth-dialog .sf-auth__main {
        padding: 24px 16px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-auth-dialog[open],
    .sf-auth-dialog::backdrop,
    .sf-logout-toast {
        animation: none;
    }

    .sf-auth-dialog.is-closing,
    .sf-logout-toast.is-leaving {
        transition: none;
    }
}

@keyframes sf-auth-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@keyframes sf-logout-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@keyframes sf-auth-fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes sf-auth-spin { to { transform: rotate(360deg); } }
