:root {
    color-scheme: dark;
}

.sls-auth-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--da-platform-background);
    color: var(--da-text);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.sls-auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(440px, 1.1fr);
    min-height: 100vh;
}

.sls-auth-brand,
.sls-auth-entry {
    display: flex;
    min-width: 0;
}

.sls-auth-brand {
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 5vw, 72px);
    overflow: hidden;
    border-right: 1px solid rgba(180, 209, 245, 0.15);
    background:
        linear-gradient(180deg, rgba(8, 27, 58, 0.08), rgba(8, 20, 43, 0.54)),
        radial-gradient(circle at 26% 20%, rgba(71, 142, 224, 0.26), transparent 46%),
        rgba(8, 24, 52, 0.6);
}

.sls-auth-brand::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.025);
    content: "";
}

.sls-auth-logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    color: var(--da-text);
    text-decoration: none;
}

.sls-auth-logo > i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(169, 205, 255, 0.3);
    border-radius: 8px;
    background: rgba(11, 31, 64, 0.52);
    color: #b8d8ff;
    font-size: 20px;
}

.sls-auth-logo > span {
    font-size: 19px;
    font-weight: 600;
}

.sls-auth-logo mark {
    margin-left: 2px;
    background: none;
    color: #78cfd0;
}

.sls-auth-context {
    position: relative;
    z-index: 1;
    max-width: 550px;
    margin-block: clamp(56px, 12vh, 132px);
}

.sls-auth-kicker {
    display: block;
    color: #9cc8fa;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sls-auth-context h1 {
    max-width: 540px;
    margin: 16px 0 18px;
    color: #f4f8ff;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(38px, 4.2vw, 60px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
}

.sls-auth-context p {
    max-width: 470px;
    margin: 0;
    color: rgba(220, 234, 251, 0.7);
    font-size: 15px;
    line-height: 1.7;
}

.sls-auth-assurance {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: rgba(222, 235, 251, 0.7);
    font-size: 11px;
}

.sls-auth-assurance span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sls-auth-assurance i {
    color: #78cfd0;
    font-size: 15px;
}

.sls-auth-assurance strong {
    font-weight: 500;
}

.sls-auth-entry {
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 6vw, 84px);
    background: rgba(13, 20, 35, 0.2);
}

.sls-auth-entry-inner {
    width: min(100%, 430px);
}

.sls-auth-header {
    margin-bottom: 32px;
}

.sls-auth-header h2 {
    margin: 9px 0 7px;
    color: #f2f6fd;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0;
}

.sls-auth-header p {
    margin: 0;
    color: var(--da-muted);
    font-size: 13px;
}

.sls-auth-form {
    display: grid;
    gap: 20px;
}

.sls-auth-alert:empty {
    display: none;
}

.sls-auth-alert {
    padding: 10px 12px;
    border: 1px solid rgba(226, 122, 122, 0.3);
    border-radius: 7px;
    background: rgba(133, 45, 45, 0.14);
    color: #ffc4c4;
    font-size: 12px;
    line-height: 1.5;
}

.sls-auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.sls-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sls-auth-options > span {
    max-width: 180px;
    color: var(--da-faint);
    font-size: 10.5px;
    line-height: 1.4;
    text-align: right;
}

.sls-auth-submit.sls-topos-button.tbtn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
}

.sls-auth-footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(180, 209, 245, 0.11);
    color: var(--da-faint);
    font-size: 10.5px;
    line-height: 1.5;
}

.sls-auth-footer i {
    margin-top: 1px;
    color: #9cc8fa;
    font-size: 14px;
}

.sls-auth-denied-header {
    display: grid;
    justify-items: start;
}

.sls-auth-denied-mark {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid rgba(156, 200, 250, 0.24);
    border-radius: 8px;
    background: rgba(20, 52, 96, 0.48);
    color: #b8d8ff;
    font-size: 22px;
}

.sls-auth-denied-header h2 {
    max-width: 390px;
    line-height: 1.2;
}

.sls-auth-denied-header p {
    max-width: 390px;
    line-height: 1.6;
}

.sls-auth-denied-context {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 30px 0 24px;
    padding: 14px 0;
    border-block: 1px solid rgba(180, 209, 245, 0.11);
}

.sls-auth-denied-context > i {
    margin-top: 2px;
    color: #78cfd0;
    font-size: 18px;
}

.sls-auth-denied-context span {
    display: grid;
    gap: 4px;
}

.sls-auth-denied-context strong {
    color: #e9f2ff;
    font-size: 12px;
    font-weight: 600;
}

.sls-auth-denied-context small {
    color: var(--da-faint);
    font-size: 10.5px;
}

.sls-auth-denied-actions {
    width: 100%;
}

@media (max-width: 800px) {
    .sls-auth-shell {
        grid-template-columns: 1fr;
    }

    .sls-auth-brand {
        min-height: 220px;
        padding: 26px;
        border-right: 0;
        border-bottom: 1px solid rgba(180, 209, 245, 0.15);
    }

    .sls-auth-context {
        margin: 48px 0 0;
    }

    .sls-auth-context h1 {
        margin-block: 11px;
        font-size: 34px;
    }

    .sls-auth-context p,
    .sls-auth-assurance {
        display: none;
    }

    .sls-auth-entry {
        align-items: flex-start;
        min-height: calc(100vh - 220px);
        padding: 38px 24px 48px;
    }
}

@media (max-width: 430px) {
    .sls-auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .sls-auth-options > span {
        max-width: none;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sls-auth-page *,
    .sls-auth-page *::before,
    .sls-auth-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
