/* Authentication shell translated from Figma node 416:14230. */
.auth-shell {
    --auth-form-width: 360px;
    min-height: 100svh;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--surface);
    font-family: var(--font-geist);
}

.auth-hero {
    position: relative;
    display: block;
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--brand-surface);
}

.auth-campaign-collage {
    --auth-campaign-column-width: clamp(282.609px, 18.5vw, 440px);
    --auth-campaign-column-gap: clamp(16px, 1.3vw, 24px);
    position: absolute;
    top: clamp(-420px, -20.7vw, -314px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, var(--auth-campaign-column-width));
    gap: var(--auth-campaign-column-gap);
    width: max-content;
    transform: translateX(-50%);
}

.auth-campaign-column {
    --auth-campaign-gap: clamp(16px, 1.3vw, 24px);
    --auth-campaign-half-gap: clamp(8px, 0.65vw, 12px);
    min-width: 0;
}

.auth-campaign-column--offset {
    padding-top: clamp(264.045px, 17.5vw, 360px);
}

.auth-campaign-track,
.auth-campaign-set {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: var(--auth-campaign-gap);
}

.auth-campaign-track {
    backface-visibility: hidden;
    will-change: transform;
}

.auth-campaign-column--up .auth-campaign-track {
    animation: auth-campaign-up 52s linear infinite;
}

.auth-campaign-column--down .auth-campaign-track {
    animation: auth-campaign-down 39s linear infinite;
}

.auth-campaign-set img {
    display: block;
    width: 124.77%;
    height: auto;
    flex: none;
    margin: -12.385%;
}

@keyframes auth-campaign-up {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(0, calc(-50% - var(--auth-campaign-half-gap)), 0);
    }
}

@keyframes auth-campaign-down {
    from {
        transform: translate3d(0, calc(-50% - var(--auth-campaign-half-gap)), 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

.auth-panel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100svh;
    padding: 140px 24px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--surface);
}

.auth-panel__inner {
    position: relative;
    display: flex;
    width: var(--auth-form-width);
    min-height: calc(100svh - 164px);
    flex-direction: column;
}

.auth-panel__content {
    width: 100%;
    padding-top: var(--space-xl3);
}

.auth-brand-lockup {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 47.758px;
    gap: 0;
}

.auth-brand-mark {
    display: grid;
    width: 47.758px;
    height: 47.758px;
    flex: 0 0 47.758px;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-brand-mark img {
    display: block;
    width: 35.6px;
    height: 34.2px;
}

.auth-brand-name {
    color: var(--icon-brand-secondary);
    font: 600 22.386px/35.818px var(--font-geist);
    letter-spacing: 0;
}

.auth-body {
    width: 100%;
    padding: 0;
    margin-top: var(--space-lg);
}

.auth-body h1,
.auth-body h3 {
    margin: 0 0 var(--space-md);
    color: var(--text-brand);
    font: var(--heading-2xl);
    letter-spacing: 0;
}

.auth-body > .notice {
    margin-bottom: var(--space-base);
}

.auth-body .notice.notice--info.auth-notice--idle {
    display: none;
}

.auth-body .notice:not(.auth-notice--idle) {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
    font: var(--body-s);
}

.auth-body #loginStepDesc {
    margin: calc(-1 * var(--space-sm)) 0 var(--space-md);
    color: var(--text-tertiary);
    font: var(--body-m);
    letter-spacing: var(--tracking-body-m);
}

.auth-body #loginStepDesc:empty {
    display: none;
}

.auth-stepbar {
    min-height: 0;
    margin: 0;
}

.auth-stepbar:has(#loginChangeEmailBtn:not(.is-hidden)) {
    justify-content: flex-end;
    margin-bottom: var(--space-sm);
}

.auth-step-pill {
    display: none;
}

.auth-body .form-stack,
.auth-login-step {
    gap: var(--space-md);
}

.auth-panel .lio-field {
    gap: var(--space-xs3);
}

.auth-panel .lio-field__label {
    color: var(--text-tertiary);
    font: var(--body-m);
    letter-spacing: var(--tracking-body-m);
}

.auth-panel .lio-input-shell {
    height: var(--control-h-md);
    min-height: var(--control-h-md);
    padding: var(--space-xs2) 10px;
    gap: var(--space-xs);
    border-color: var(--border);
    border-radius: var(--control-radius);
    background: var(--surface);
    box-shadow: none;
}

.auth-panel .lio-input-shell:focus-within {
    border-color: var(--border-secondary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--border-secondary) 38%, transparent);
}

.auth-panel .lio-input {
    color: var(--text-secondary);
    font: 400 14px/20px var(--font-geist);
}

.auth-panel .lio-input::placeholder {
    color: var(--text-secondary);
}

.auth-panel .lio-btn {
    height: var(--control-h-md);
    min-height: var(--control-h-md);
    border-radius: var(--control-radius);
    font: 500 14px/20px var(--font-geist);
}

.auth-panel .lio-btn[data-variant="primary"] {
    background: var(--brand-solid);
    color: var(--text-inverse);
}

.auth-panel .lio-btn[data-variant="primary"]:hover {
    background: var(--brand-solid-hover);
}

.auth-login-step__actions,
.auth-login-step__actions .lio-btn,
#signupPane .button-row,
#signupPane .button-row .lio-btn {
    width: 100%;
}

.auth-login-secondary {
    display: flex;
    min-height: 28px;
    justify-content: center;
    margin: 0;
}

#loginPasswordStep .auth-login-step__actions {
    order: 2;
}

#loginPasswordStep .auth-login-secondary {
    order: 3;
}

.auth-link-button {
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--control-radius);
    background: transparent;
    color: var(--text);
    font: 500 14px/20px var(--font-geist);
}

.auth-link-button:hover {
    background: var(--surface-hover);
}

.auth-link-button:focus-visible {
    outline: none;
    box-shadow: var(--ring-brand);
}

.auth-password-reset-link,
.auth-login-secondary .auth-password-reset-link {
    align-self: center;
}

#passwordResetPrompt.is-open {
    align-items: center;
    padding: var(--space-lg);
}

#passwordResetPrompt .popup-modal__scrim {
    background: var(--overlay);
}

.auth-password-reset-modal {
    width: min(440px, calc(100vw - (var(--space-lg) * 2)));
    max-height: calc(100dvh - (var(--space-lg) * 2));
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-2xl);
    background: var(--surface);
    box-shadow: var(--shadow-2xl);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-password-reset-modal::before {
    content: none;
}

.auth-password-reset-modal__header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-base);
    padding: var(--space-lg) var(--space-lg) var(--space-base);
    border: 0;
    background: var(--surface);
}

.auth-password-reset-modal__heading {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: flex-start;
    gap: var(--space-xs);
}

.auth-password-reset-modal__header h3 {
    margin: var(--space-zero) var(--space-zero) var(--space-xs);
    color: var(--text-brand);
    font: var(--heading-2xl);
    letter-spacing: 0;
}

.auth-password-reset-modal__header p {
    max-width: 320px;
    margin: var(--space-zero);
    color: var(--text-secondary);
    font: var(--body-m);
    letter-spacing: var(--tracking-body-m);
    line-height: 1.55;
}

.auth-password-reset-modal__close.lio-btn,
.auth-password-reset-modal__back.lio-btn {
    width: var(--control-h-sm);
    min-width: var(--control-h-sm);
    height: var(--control-h-sm);
    min-height: var(--control-h-sm);
    flex: 0 0 var(--control-h-sm);
    padding: var(--space-zero);
    border-radius: var(--radius-full);
    color: var(--icon);
}

.auth-password-reset-modal__back.lio-btn {
    margin-left: calc(-1 * var(--space-xs2));
}

.auth-password-reset-modal__back.is-hidden {
    display: none;
}

.auth-password-reset-modal .popup-modal__body {
    padding: var(--space-zero) var(--space-lg) var(--space-lg);
    background: var(--surface);
    overflow-y: auto;
}

.auth-password-reset-modal .form-stack {
    gap: var(--space-zero);
}

.auth-reset-step {
    display: grid;
    width: 100%;
    gap: var(--space-base);
    margin: var(--space-zero);
    padding: var(--space-zero);
    border: 0;
    border-radius: var(--radius-none);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-reset-step.is-hidden {
    display: none;
}

.auth-password-reset-modal .lio-field {
    gap: var(--space-xs);
}

.auth-password-reset-modal .lio-field__label {
    color: var(--text);
    font: var(--body-m-prominent);
}

.auth-password-reset-modal .lio-input-shell {
    height: var(--control-h-lg);
    min-height: var(--control-h-lg);
    padding: var(--space-xs2) var(--space-sm);
    border-color: var(--border);
    border-radius: var(--control-radius);
    background: var(--surface);
    box-shadow: none;
}

.auth-password-reset-modal .lio-input-shell:focus-within {
    border-color: var(--border-secondary);
    box-shadow: var(--ring-brand);
}

.auth-password-reset-modal .lio-input {
    color: var(--text);
    font: 400 14px/20px var(--font-geist);
}

.auth-reset-actions {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-sm);
    margin: var(--space-zero);
}

.auth-reset-actions .lio-btn {
    box-shadow: none;
}

.auth-reset-actions:not(.auth-reset-actions--split) .lio-btn {
    width: 100%;
}

.auth-reset-actions--split {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
}

.auth-reset-actions--split .lio-btn[data-variant="primary"] {
    width: 100%;
}

#passwordResetSupport {
    width: 100%;
    margin: var(--space-sm) var(--space-zero) var(--space-zero);
    color: var(--text-tertiary);
    font: var(--body-s);
}

#passwordResetSupport:empty {
    display: none;
}

.auth-reset-result {
    justify-items: center;
    padding: var(--space-xs) var(--space-zero) var(--space-zero);
    text-align: center;
}

.auth-reset-result__icon {
    display: grid;
    width: var(--size-5xl);
    height: var(--size-5xl);
    place-items: center;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    color: var(--success-text);
    font: var(--body-s-prominent);
    box-shadow: none;
}

.auth-reset-result__icon.is-error {
    background: var(--error-bg);
    color: var(--error-text);
    box-shadow: none;
}

.auth-reset-result h4 {
    margin: var(--space-zero);
    color: var(--text);
    font: var(--heading-xl);
    letter-spacing: 0;
}

.auth-reset-result p {
    margin: calc(-1 * var(--space-xs)) var(--space-zero) var(--space-zero);
    color: var(--text-secondary);
    font: var(--body-m);
}

.auth-account-switch {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font: var(--body-m);
    letter-spacing: var(--tracking-body-m);
    white-space: nowrap;
}

#loginPane .auth-account-switch {
    width: 100%;
}

.auth-account-switch .auth-link-button {
    margin-left: 0;
}

.auth-password-toggle {
    display: inline-grid;
    width: var(--size-lg);
    height: var(--size-lg);
    flex: 0 0 var(--size-lg);
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    border-radius: var(--radius-sm);
}

.auth-password-toggle img {
    display: block;
    width: 16px;
    height: 16px;
}

.auth-password-toggle[aria-pressed="true"] {
    opacity: 0.58;
}

.auth-password-toggle:focus-visible {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

.auth-password-shell,
.auth-passkey-stage {
    gap: var(--space-md);
}

.auth-login-identity {
    display: flex;
    width: 100%;
    min-height: var(--control-h-md);
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    padding: var(--space-xs2) var(--space-xs2) var(--space-xs2) var(--space-sm);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
}

.auth-login-identity[hidden] {
    display: none !important;
}

.auth-login-identity .auth-identity-chip {
    min-width: 0;
    min-height: 0;
    flex: 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: 500 14px/20px var(--font-geist);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-login-identity .auth-link-button {
    flex: none;
}

.auth-use-passkey {
    align-self: flex-end;
}

.auth-identity-row {
    gap: var(--space-xs);
}

.auth-identity-chip {
    max-width: 100%;
    min-height: 28px;
    padding: var(--space-xs2) var(--space-xs);
    overflow: hidden;
    border-radius: var(--radius-full);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-passkey-card {
    border-radius: var(--control-radius);
}

#signupPane .form-stack {
    gap: var(--space-sm);
}

#signupPane .auth-account-switch {
    margin-top: var(--space-lg);
}

#signupPane .password-rules {
    margin: 0;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
}

#signupPane .password-rules__list {
    gap: var(--space-xs3) var(--space-sm);
}

.auth-legal {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 48px);
    margin: 0;
    transform: translateX(-50%);
    color: var(--text-tertiary);
    font: var(--body-s);
    letter-spacing: var(--tracking-body-m);
    text-align: center;
    white-space: nowrap;
}

.auth-legal a {
    text-decoration: underline;
    text-underline-offset: 1px;
}

.auth-shell[data-auth-view="signup"] .auth-panel__inner {
    min-height: calc(100svh - 164px);
}

.auth-shell[data-auth-view="signup"] .auth-legal {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: min(540px, calc(100vw - 48px));
    max-width: none;
    margin: 0;
    padding-bottom: 0;
    transform: translateX(-50%);
    text-align: center;
    white-space: normal;
}

@media (max-width: 1180px) {
    .auth-shell {
        grid-template-columns: minmax(420px, 0.9fr) minmax(500px, 1.1fr);
    }

    .auth-campaign-collage {
        transform: translateX(-50%) scale(0.86);
        transform-origin: top center;
    }
}

@media (max-width: 900px) {
    .auth-shell {
        display: block;
        background: var(--surface);
    }

    .auth-hero {
        display: none;
    }

    .auth-panel {
        min-height: 100svh;
        padding: clamp(32px, 8vh, 72px) 24px 24px;
    }

    .auth-panel__inner {
        min-height: calc(100svh - clamp(56px, 8vh, 96px));
    }

    .auth-panel__content {
        padding-top: 0;
    }

    #loginPane .auth-account-switch {
        margin-top: var(--space-xl5);
    }
}

@media (min-width: 901px) {
    .auth-shell[data-auth-view="signup"] .auth-panel {
        padding-top: 80px;
    }

    .auth-shell[data-auth-view="signup"] .auth-panel__content {
        padding-top: 0;
        padding-bottom: 44px;
    }

    .auth-shell[data-auth-view="signup"] .auth-panel__inner {
        min-height: calc(100svh - 104px);
    }

    #loginForm {
        min-height: 220px;
    }

    #loginForm:has(#loginPasswordStep:not(.is-hidden)),
    #loginForm:has(#loginPasskeyStep:not(.is-hidden)) {
        min-height: 0;
    }

    #loginPane:has(#loginPasswordStep:not(.is-hidden)) .auth-account-switch,
    #loginPane:has(#loginPasskeyStep:not(.is-hidden)) .auth-account-switch {
        margin-top: var(--space-xl5);
    }
}

@media (max-width: 480px) {
    .auth-shell {
        --auth-form-width: 100%;
    }

    .auth-panel {
        padding: 28px 20px 20px;
    }

    .auth-brand-mark {
        margin-left: -6px;
    }

    .auth-account-switch {
        white-space: normal;
    }

    .auth-legal {
        position: static;
        width: 100%;
        margin: auto auto 0;
        padding-top: var(--space-xl3);
        transform: none;
        white-space: normal;
    }

    .auth-shell[data-auth-view="signup"] .auth-legal {
        position: static;
        width: 100%;
        max-width: none;
        margin: auto auto 0;
        padding-top: var(--space-xl3);
        transform: none;
        text-align: center;
        white-space: normal;
    }

    #passwordResetPrompt.is-open {
        padding: var(--space-sm);
    }

    .auth-password-reset-modal {
        width: calc(100vw - (var(--space-sm) * 2));
        max-height: calc(100dvh - (var(--space-sm) * 2));
    }

    .auth-password-reset-modal__header {
        padding: var(--space-md) var(--space-md) var(--space-base);
    }

    .auth-password-reset-modal .popup-modal__body {
        padding: var(--space-zero) var(--space-md) var(--space-md);
    }

    .auth-reset-actions--split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .password-rules__list {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    .auth-panel {
        padding-top: 40px;
    }

    .auth-panel__inner {
        min-height: calc(100svh - 64px);
    }

    .auth-panel__content {
        padding-top: 16px;
    }

    .auth-shell[data-auth-view="signup"] .auth-panel {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .auth-shell[data-auth-view="signup"] .auth-panel__content {
        padding-top: 0;
    }

    .auth-shell[data-auth-view="signup"] .auth-panel__inner {
        min-height: calc(100svh - 32px);
    }

    .auth-shell[data-auth-view="signup"] .auth-legal {
        margin-top: var(--space-base);
    }

}

@media (prefers-reduced-motion: reduce) {
    .auth-campaign-track {
        animation: none !important;
        transform: none !important;
    }

    .auth-panel *,
    .auth-hero * {
        scroll-behavior: auto;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
