body.landing-auth-open {
    overflow: hidden;
}

.landing-auth-modal {
    --auth-modal-gutter: clamp(16px, 2vw, 24px);
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--auth-modal-gutter);
    background: rgba(3, 9, 22, 0.76);
    backdrop-filter: blur(18px);
    overflow: hidden;
    z-index: 10000;
}

.landing-auth-modal--visible {
    display: flex;
}

.landing-auth-shell {
    width: calc(100vw - (var(--auth-modal-gutter) * 2));
    height: calc(100vh - (var(--auth-modal-gutter) * 2));
    max-width: none;
    max-height: none;
    min-height: 0;
    margin: auto;
}

.landing-auth-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, 34vw) minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(120, 184, 255, 0.16);
    background: linear-gradient(155deg, rgba(8, 21, 46, 0.98), rgba(4, 12, 28, 0.98));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

.landing-auth-close {
    position: absolute;
    top: clamp(16px, 1.8vw, 24px);
    right: clamp(16px, 1.8vw, 24px);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fbff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.landing-auth-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.landing-auth-aside {
    padding: clamp(34px, 3vw, 50px) clamp(26px, 2.8vw, 42px);
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(88, 166, 255, 0.2), transparent 44%),
        radial-gradient(circle at bottom left, rgba(37, 211, 172, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(15, 32, 64, 0.96), rgba(8, 18, 36, 0.98));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #e8f3ff;
    overflow: hidden;
    min-height: 0;
}

.landing-auth-kicker {
    margin: 0 0 12px;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(198, 222, 255, 0.68);
}

.landing-auth-aside h3 {
    margin: 0 0 14px;
    font-size: clamp(2.15rem, 2.9vw, 3.25rem);
    line-height: 0.96;
    font-weight: 700;
}

.landing-auth-aside p {
    margin: 0;
    color: rgba(220, 235, 255, 0.74);
    line-height: 1.7;
}

.landing-auth-points {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 14px;
}

.landing-auth-points li {
    padding: 14px 14px 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.landing-auth-point-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fbff;
}

.landing-auth-point-text {
    display: block;
    font-size: 0.84rem;
    color: rgba(220, 235, 255, 0.74);
    line-height: 1.55;
}

.landing-auth-note {
    margin-top: 24px;
    font-size: 0.78rem;
    line-height: 1.65;
    color: rgba(198, 222, 255, 0.65);
}

.landing-auth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(34px, 3.8vw, 72px) clamp(30px, 4vw, 84px);
    overflow: hidden;
    min-height: 0;
}

.landing-auth-content-inner {
    width: min(860px, 100%);
}

.landing-auth-modal,
.landing-auth-panel,
.landing-auth-aside,
.landing-auth-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 211, 252, 0.34) rgba(15, 23, 42, 0.18);
}

.landing-auth-modal::-webkit-scrollbar,
.landing-auth-panel::-webkit-scrollbar,
.landing-auth-aside::-webkit-scrollbar,
.landing-auth-content::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.landing-auth-modal::-webkit-scrollbar-track,
.landing-auth-panel::-webkit-scrollbar-track,
.landing-auth-aside::-webkit-scrollbar-track,
.landing-auth-content::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.18);
}

.landing-auth-modal::-webkit-scrollbar-thumb,
.landing-auth-panel::-webkit-scrollbar-thumb,
.landing-auth-aside::-webkit-scrollbar-thumb,
.landing-auth-content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.78), rgba(14, 165, 233, 0.58));
}

.landing-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.landing-auth-brand img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: contain;
}

.landing-auth-brand-copy {
    display: grid;
    gap: 3px;
}

.landing-auth-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fbff;
}

.landing-auth-brand-subtitle {
    font-size: 0.82rem;
    color: rgba(198, 222, 255, 0.7);
}

.landing-auth-eyebrow {
    margin: 0 0 10px;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(132, 190, 255, 0.8);
}

.landing-auth-content h2 {
    margin: 0;
    font-size: clamp(2.3rem, 3.1vw, 3.5rem);
    line-height: 0.98;
    font-weight: 700;
    color: #f8fbff;
}

.landing-auth-subtitle {
    margin: 12px 0 24px;
    max-width: 680px;
    color: rgba(210, 228, 249, 0.78);
    font-size: clamp(0.98rem, 1.14vw, 1.08rem);
    line-height: 1.68;
}

.login-card--landing {
    max-width: 620px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px 26px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-card--landing #status-message {
    margin-bottom: 1rem;
}

.landing-auth-modal .ds-form-group {
    margin-bottom: 1.2rem;
}

.landing-auth-modal .ds-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #f8fbff;
}

.landing-auth-modal .ds-form-label i {
    width: 16px;
    height: 16px;
    color: #60a5fa;
}

.landing-auth-modal .ds-form-input {
    width: 100%;
    padding: 0.86rem 0.95rem;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 14px;
    background: rgba(8, 18, 36, 0.88);
    color: #f8fbff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.landing-auth-modal .ds-form-input::placeholder {
    color: rgba(210, 228, 249, 0.4);
}

.landing-auth-modal .ds-form-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.9);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
    background: rgba(10, 22, 42, 0.96);
}

.landing-auth-modal .ds-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.92rem 1.15rem;
    border: none;
    border-radius: 14px;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.landing-auth-modal .ds-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.landing-auth-modal .ds-btn-primary {
    background: linear-gradient(135deg, #22c55e, #14b8a6 58%, #f59e0b);
    color: #04111f;
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.24);
}

.landing-auth-modal .ds-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(20, 184, 166, 0.28);
}

.landing-auth-modal .ds-btn-secondary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.14));
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #f8fbff;
}

.landing-auth-modal .ds-btn-secondary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.34), rgba(59, 130, 246, 0.28));
}

.landing-auth-modal .ds-btn-ghost {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: rgba(226, 232, 240, 0.78);
}

.landing-auth-modal .ds-btn-ghost:hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.14);
}

.landing-auth-modal .auth-form-shell {
    display: grid;
}

.landing-auth-modal .auth-inline-challenge {
    margin: 0.15rem 0 1.15rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.18), rgba(15, 23, 42, 0.14));
}

.landing-auth-modal .auth-inline-challenge__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.landing-auth-modal .auth-inline-challenge__label {
    margin: 0 0 0.15rem;
    color: #f8fbff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-auth-modal .auth-inline-challenge__hint {
    margin: 0;
    color: rgba(210, 228, 249, 0.78);
    font-size: 0.86rem;
}

.landing-auth-modal .auth-inline-challenge__refresh {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #dbeafe;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.landing-auth-modal .auth-inline-challenge__refresh:hover {
    background: rgba(255, 255, 255, 0.1);
}

.landing-auth-modal .auth-inline-challenge__equation {
    display: grid;
    grid-template-columns: auto auto auto auto minmax(86px, 112px);
    align-items: center;
    gap: 0.55rem;
}

.landing-auth-modal .auth-inline-challenge__number,
.landing-auth-modal .auth-inline-challenge__symbol {
    color: #f8fbff;
    font-size: 1.55rem;
    font-weight: 700;
    text-align: center;
}

.landing-auth-modal .auth-inline-challenge__input {
    margin-bottom: 0;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
}

.landing-auth-modal .auth-inline-challenge__error {
    margin-top: 0.7rem;
    color: #fecaca;
    font-size: 0.82rem;
}

.landing-auth-modal .auth-step-footnote {
    margin: 0.9rem 0 0;
    color: rgba(210, 228, 249, 0.74);
    font-size: 0.82rem;
    text-align: center;
}

.landing-auth-modal .auth-link-row {
    margin-top: 0.85rem;
    text-align: center;
}

.landing-auth-modal .auth-link-row a {
    color: #7dd3fc;
    text-decoration: none;
    font-size: 0.85rem;
}

.landing-auth-modal .auth-link-row a:hover {
    text-decoration: underline;
}

.landing-auth-modal #password-login-submit {
    background: linear-gradient(135deg, #f8d979, #d4af37 58%, #b88916);
    color: #08111f;
    box-shadow: 0 14px 30px rgba(212, 175, 55, 0.28);
}

.landing-auth-modal #password-login-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #fce7a8, #ddb84b 58%, #c7941e);
    box-shadow: 0 18px 36px rgba(212, 175, 55, 0.34);
}

.landing-auth-modal .login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.4rem 0;
}

.landing-auth-modal .login-divider::before,
.landing-auth-modal .login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.landing-auth-modal .login-divider span {
    padding: 0 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(210, 228, 249, 0.62);
}

.landing-auth-modal .ds-alert {
    display: none;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border-left: 4px solid;
}

.landing-auth-modal .ds-alert.is-visible {
    display: block;
}

.landing-auth-modal .ds-alert[data-variant="success"] {
    background: rgba(34, 197, 94, 0.16);
    border-color: #22c55e;
    color: #eafff3;
}

.landing-auth-modal .ds-alert[data-variant="danger"] {
    background: rgba(248, 113, 113, 0.16);
    border-color: #ef4444;
    color: #fff0f0;
}

.landing-auth-modal .ds-alert[data-variant="info"] {
    background: rgba(59, 130, 246, 0.16);
    border-color: #60a5fa;
    color: #ebf5ff;
}

.landing-auth-modal .login-trust-badge {
    margin: 1.1rem 0 0.35rem;
    font-size: 0.74rem;
    color: rgba(210, 228, 249, 0.56);
    text-align: center;
}

.landing-auth-modal .login-trust-badge a,
.landing-auth-modal .login-footer a,
.landing-auth-modal .login-footer button,
.landing-auth-modal #show-signup-request-link,
.landing-auth-modal #signup-request-back-link,
.landing-auth-modal #use-recovery-link,
.landing-auth-modal #back-to-totp-link,
.landing-auth-modal #cancel-authenticator-setup-link {
    color: #7dd3fc;
    text-decoration: none;
}

.landing-auth-modal .login-footer a:hover,
.landing-auth-modal .login-footer button:hover,
.landing-auth-modal .login-trust-badge a:hover,
.landing-auth-modal #show-signup-request-link:hover,
.landing-auth-modal #signup-request-back-link:hover,
.landing-auth-modal #use-recovery-link:hover,
.landing-auth-modal #back-to-totp-link:hover,
.landing-auth-modal #cancel-authenticator-setup-link:hover {
    text-decoration: underline;
}

.landing-auth-modal .login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.9rem;
}

.landing-auth-modal .login-footer .separator {
    color: rgba(210, 228, 249, 0.34);
}

.landing-auth-modal .login-footer button {
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.landing-auth-modal .btn-google-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.86rem 1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(226,232,240,0.04));
    color: #f8fbff;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.landing-auth-modal .btn-google-sso:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(226,232,240,0.08));
}

.landing-auth-modal .sso-error-banner,
.landing-auth-modal .sso-pending-banner {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 0.86rem;
    margin-bottom: 1rem;
}

.landing-auth-modal .sso-error-banner {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ffd4d4;
}

.landing-auth-modal .sso-pending-banner {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.24);
    color: #fff3c2;
}

.landing-auth-modal code {
    color: #f8fbff;
}

@media (max-width: 920px) {
    .landing-auth-modal {
        align-items: flex-start;
        overflow-y: auto;
        padding: 12px;
    }

    .landing-auth-shell {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .landing-auth-panel {
        grid-template-columns: 1fr;
        height: auto;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        border-radius: 24px;
    }

    .landing-auth-aside {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 28px 24px 24px;
        overflow: visible;
    }

    .landing-auth-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-auth-content {
        display: block;
        padding: 28px 24px 24px;
        overflow: visible;
    }
}

@media (max-width: 640px) {
    .landing-auth-modal {
        padding: 8px;
    }

    .landing-auth-shell {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .landing-auth-panel {
        max-height: calc(100vh - 16px);
        border-radius: 20px;
    }

    .landing-auth-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .landing-auth-aside {
        padding: 24px 18px 18px;
    }

    .landing-auth-content {
        display: block;
        padding: 22px 18px 18px;
    }

    .landing-auth-brand {
        padding-right: 2.5rem;
    }

    .landing-auth-content h2,
    .landing-auth-aside h3 {
        font-size: clamp(1.55rem, 8vw, 1.95rem);
        line-height: 1.02;
    }

    .landing-auth-subtitle {
        margin-bottom: 18px;
        line-height: 1.58;
    }

    .login-card--landing {
        max-width: none;
        padding: 20px 16px;
        border-radius: 20px;
    }

    .landing-auth-points {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .landing-auth-note {
        margin-top: 18px;
    }

    .landing-auth-modal .auth-inline-challenge__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-auth-modal .auth-inline-challenge__equation {
        grid-template-columns: repeat(4, auto);
        justify-content: center;
        row-gap: 0.6rem;
    }

    .landing-auth-modal .auth-inline-challenge__input {
        grid-column: 1 / -1;
    }
}

@media (max-height: 780px) and (min-width: 921px) {
    .landing-auth-content {
        padding-inline: clamp(28px, 3vw, 56px);
    }

    .landing-auth-aside {
        padding-inline: clamp(24px, 2.4vw, 34px);
    }

    .landing-auth-content h2,
    .landing-auth-aside h3 {
        font-size: clamp(2rem, 2.4vw, 2.7rem);
    }

    .landing-auth-subtitle {
        margin-bottom: 20px;
    }
}

@media (max-height: 700px) and (min-width: 921px) {
    .landing-auth-modal {
        align-items: flex-start;
        overflow-y: auto;
        padding: 12px;
    }

    .landing-auth-shell {
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
    }

    .landing-auth-panel {
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
    }

    .landing-auth-aside {
        padding: 28px 22px 24px;
        overflow-y: auto;
    }

    .landing-auth-content {
        align-items: flex-start;
        padding: 26px 24px 24px;
        overflow-y: auto;
    }

    .landing-auth-points {
        gap: 10px;
        margin-top: 22px;
    }
}