/*
 * Atlas Operator Login
 * Responsive authentication layout for assets/index.php
 */

:root {
    --atlas-ink-950: #06111f;
    --atlas-ink-900: #08182b;
    --atlas-ink-800: #102844;
    --atlas-blue-700: #075ee8;
    --atlas-blue-600: #0875f5;
    --atlas-blue-500: #1c8cff;
    --atlas-cyan-400: #42d3ff;
    --atlas-gold-400: #f5c451;
    --atlas-slate-700: #34445b;
    --atlas-slate-600: #53627a;
    --atlas-slate-500: #718096;
    --atlas-slate-300: #cbd5e1;
    --atlas-slate-200: #e2e8f0;
    --atlas-slate-100: #f1f5f9;
    --atlas-white: #ffffff;
    --atlas-danger: #c83c56;
    --atlas-focus: rgba(8, 117, 245, 0.22);
    --atlas-panel-shadow: 0 32px 90px rgba(0, 9, 24, 0.36);
}

html {
    min-height: 100%;
    height: auto !important;
    overflow: auto !important;
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
}

body.atlas-login-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    height: auto !important;
    margin: 0;
    padding: clamp(18px, 3vw, 42px);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    color: var(--atlas-slate-700);
    background-color: var(--atlas-ink-950) !important;
    background-image:
        radial-gradient(circle at 12% 14%, rgba(28, 140, 255, 0.2), transparent 32%),
        radial-gradient(circle at 88% 86%, rgba(66, 211, 255, 0.12), transparent 30%),
        linear-gradient(145deg, #06111f 0%, #0a1e35 55%, #071523 100%) !important;
    font-family: "Roboto", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    isolation: isolate;
}

.atlas-login-page,
.atlas-login-page *,
.atlas-login-page *::before,
.atlas-login-page *::after {
    box-sizing: border-box;
}

.atlas-login-page ::selection {
    color: var(--atlas-white);
    background: var(--atlas-blue-600);
}

.atlas-login-page a {
    color: var(--atlas-blue-600);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.atlas-login-page a:hover {
    color: var(--atlas-blue-700);
}

.atlas-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--atlas-white) !important;
    background: var(--atlas-blue-700);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.atlas-skip-link:focus {
    outline: 3px solid var(--atlas-white);
    outline-offset: 3px;
    transform: translateY(0);
}

.atlas-login-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.atlas-login-grid {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
}

.atlas-login-glow {
    position: absolute;
    display: block;
    width: min(46vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.32;
}

.atlas-login-glow-one {
    top: -28%;
    left: -16%;
    background: radial-gradient(circle, rgba(8, 117, 245, 0.78), transparent 68%);
}

.atlas-login-glow-two {
    right: -20%;
    bottom: -38%;
    background: radial-gradient(circle, rgba(66, 211, 255, 0.58), transparent 68%);
}

.atlas-auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
    width: min(100%, 1180px);
    min-height: min(720px, calc(100svh - clamp(36px, 6vw, 84px)));
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--atlas-panel-shadow);
    animation: atlas-shell-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.atlas-auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(38px, 5vw, 72px);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    background:
        linear-gradient(145deg, rgba(8, 117, 245, 0.2), transparent 52%),
        linear-gradient(160deg, #0b223b 0%, #08182b 64%, #071522 100%);
}

.atlas-auth-intro::before {
    content: "";
    position: absolute;
    top: 16%;
    right: -160px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(66, 211, 255, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 46px rgba(28, 140, 255, 0.035),
        0 0 0 92px rgba(28, 140, 255, 0.025);
}

.atlas-auth-intro::after {
    content: "";
    position: absolute;
    right: 11%;
    bottom: 10%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--atlas-gold-400);
    box-shadow:
        42px -24px 0 rgba(66, 211, 255, 0.9),
        88px 20px 0 rgba(28, 140, 255, 0.9),
        22px 54px 0 rgba(255, 255, 255, 0.32);
}

.atlas-auth-brand,
.atlas-auth-mobile-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    text-decoration: none;
}

.atlas-auth-brand img {
    display: block;
    width: 154px;
    height: auto;
}

.atlas-auth-intro-copy {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: clamp(56px, 9vh, 110px) 0 clamp(40px, 6vh, 76px);
}

.atlas-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--atlas-blue-600);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.atlas-auth-intro .atlas-auth-eyebrow {
    color: var(--atlas-cyan-400);
}

.atlas-auth-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.atlas-auth-intro h1 {
    max-width: 520px;
    margin: 0;
    color: var(--atlas-white);
    font-size: clamp(2.35rem, 4.1vw, 4.35rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.atlas-auth-intro-copy > p {
    max-width: 510px;
    margin: 24px 0 0;
    color: rgba(226, 238, 250, 0.72);
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    line-height: 1.72;
}

.atlas-auth-benefits {
    display: grid;
    gap: 14px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.atlas-auth-benefits li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    color: rgba(241, 247, 255, 0.88);
    font-size: 0.925rem;
}

.atlas-auth-benefits .fa {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(66, 211, 255, 0.22);
    border-radius: 10px;
    color: var(--atlas-cyan-400);
    background: rgba(66, 211, 255, 0.08);
    font-size: 0.875rem;
}

.atlas-auth-intro-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: rgba(209, 225, 242, 0.52);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.atlas-auth-intro-footer span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42d98b;
    box-shadow: 0 0 0 5px rgba(66, 217, 139, 0.1);
}

.atlas-auth-main {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: clamp(38px, 5vw, 72px);
    color: var(--atlas-slate-700);
    background: rgba(255, 255, 255, 0.985);
}

.atlas-login-panel {
    width: min(100%, 430px);
}

.atlas-auth-mobile-brand {
    display: none;
    margin-bottom: 42px;
}

.atlas-auth-mobile-brand img {
    display: block;
    width: 138px;
    height: auto;
}

.atlas-login-header {
    margin-bottom: 30px;
}

.atlas-login-header h2 {
    margin: 0;
    color: var(--atlas-ink-900);
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.atlas-login-header p {
    margin: 14px 0 0;
    color: var(--atlas-slate-600);
    font-size: 0.9375rem;
    line-height: 1.65;
}

#headline,
#login-headline,
#configure_btn,
#profile-selection-div,
#server_profile_selection-outer {
    display: none !important;
}

#login-container.atlas-login-form-shell {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto;
    display: block;
    width: 100% !important;
    max-width: none;
    height: auto !important;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#login-form {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex;
    width: 100% !important;
    flex-direction: column;
    gap: 18px;
    padding: 0 !important;
}

#login-form:empty {
    min-height: 250px;
}

#username-container { order: 1; }
#password-container { order: 2; }
#user_status-outer { order: 3; }
#login-checkbox-div { order: 4; }
#login_btn { order: 5; }
#orientation_btn { order: 6; }

.atlas-login-page .login-input,
#user_status-outer {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding-top: 24px;
    border: 0 !important;
    background: transparent;
}

#username-container::before,
#password-container::before,
#user_status-outer::before {
    position: absolute;
    top: 0;
    left: 1px;
    color: var(--atlas-slate-700);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
}

#username-container::before { content: "Username"; }
#password-container::before { content: "Password"; }
#user_status-outer::before { content: "Availability"; }

.atlas-login-page .login-input > label,
#user_status-outer > label,
.atlas-login-page .login-input .atlasm-input-icon-a,
.atlas-login-page .login-input .atlasm-input-icon- {
    display: none !important;
}

.atlas-login-page .login-input .atlasm-input-text,
.atlas-login-page .login-input .atlasm-input-text-a {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    overflow: visible;
    border: 0 !important;
    background: transparent !important;
}

.atlas-login-page #username,
.atlas-login-page #password,
.atlas-login-page #user_status {
    display: block;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px;
    margin: 0 !important;
    border: 1px solid var(--atlas-slate-300) !important;
    border-radius: 14px !important;
    outline: none;
    color: var(--atlas-ink-900) !important;
    background-color: var(--atlas-white) !important;
    background-image: none;
    box-shadow: 0 1px 2px rgba(8, 24, 43, 0.03);
    font-family: inherit;
    font-size: 0.9375rem !important;
    line-height: 1.2;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.atlas-login-page #username,
.atlas-login-page #password {
    padding: 0 16px !important;
}

.atlas-login-page #user_status {
    cursor: pointer;
    padding: 0 46px 0 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2353627a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-position: calc(100% - 16px) 50% !important;
    background-repeat: no-repeat !important;
    background-size: 18px 18px !important;
    appearance: none;
    -webkit-appearance: none;
}

.atlas-login-page #username::placeholder,
.atlas-login-page #password::placeholder {
    color: #8a97aa;
    opacity: 1;
}

.atlas-login-page #username:hover,
.atlas-login-page #password:hover,
.atlas-login-page #user_status:hover {
    border-color: #9fb2c9 !important;
}

.atlas-login-page #username:focus,
.atlas-login-page #password:focus,
.atlas-login-page #user_status:focus {
    border-color: var(--atlas-blue-600) !important;
    box-shadow: 0 0 0 4px var(--atlas-focus) !important;
}

#login-checkbox-div {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: -2px 0 2px;
}

#login-checkbox-div > div {
    position: relative;
    display: flex !important;
    min-width: 0;
    flex: 1 1 120px;
    align-items: center;
    margin: 0 !important;
}

.atlas-login-page #login-checkbox-div .checkbox-custom {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0 !important;
}

.atlas-login-page #login-checkbox-div .checkbox-custom-label {
    position: relative;
    display: inline-flex;
    min-height: 24px;
    max-width: 100%;
    align-items: center;
    gap: 9px;
    padding: 0 !important;
    color: var(--atlas-slate-600);
    background: transparent;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
}

.atlas-login-page #login-checkbox-div .checkbox-custom-label::before {
    content: "";
    position: static;
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin: 0;
    border: 1px solid #b9c6d6;
    border-radius: 6px;
    background: var(--atlas-white);
    box-shadow: 0 1px 2px rgba(8, 24, 43, 0.04);
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.atlas-login-page #login-checkbox-div .checkbox-custom:checked + .checkbox-custom-label::before {
    border-color: var(--atlas-blue-600);
    background-color: var(--atlas-blue-600);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 13px;
}

.atlas-login-page #login-checkbox-div .checkbox-custom:focus-visible + .checkbox-custom-label::before {
    border-color: var(--atlas-blue-600);
    box-shadow: 0 0 0 4px var(--atlas-focus);
}

#server_profile_selection { display: none !important; }

#login_btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    margin: 2px 0 0 !important;
    padding: 0 24px !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 14px !important;
    color: var(--atlas-white) !important;
    background: linear-gradient(135deg, var(--atlas-blue-700), var(--atlas-blue-500)) !important;
    box-shadow: 0 13px 28px rgba(7, 94, 232, 0.24);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-shadow: none;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

#login_btn::after {
    content: "\2192";
    margin-left: 10px;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 150ms ease;
}

#login_btn:hover {
    background: linear-gradient(135deg, #0655d3, #087ff4) !important;
    box-shadow: 0 16px 32px rgba(7, 94, 232, 0.3);
    transform: translateY(-1px);
}

#login_btn:hover::after { transform: translateX(3px); }

#login_btn:active {
    box-shadow: 0 8px 18px rgba(7, 94, 232, 0.22);
    transform: translateY(1px);
}

#login_btn:focus-visible {
    outline: 3px solid rgba(8, 117, 245, 0.28);
    outline-offset: 3px;
}

#login_btn.ui-disabled,
#login_btn[aria-disabled="true"] {
    box-shadow: none;
    cursor: not-allowed;
    filter: grayscale(0.25);
    opacity: 0.55 !important;
    transform: none;
}

#orientation_btn { display: none !important; }

.atlas-login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--atlas-slate-200);
    color: var(--atlas-slate-500);
    font-size: 0.75rem;
}

.atlas-login-footer p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.atlas-login-footer .fa {
    color: var(--atlas-blue-600);
    font-size: 0.75rem;
}

#login-copyright-link {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    min-height: 0;
    margin: 0;
    line-height: 1.4;
    text-align: right;
    opacity: 1;
}

#login-copyright-link:empty { display: none; }

#login-copyright-link a {
    color: var(--atlas-slate-500);
    font-weight: 600;
    text-decoration: none;
}

#login-copyright-link a:hover { color: var(--atlas-blue-600); }

.atlas-auth-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0 0 22px;
    padding: 14px 15px;
    border: 1px solid rgba(200, 60, 86, 0.2);
    border-radius: 13px;
    color: #81283b;
    background: #fff2f5;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.atlas-auth-warning > .fa {
    margin-top: 2px;
    color: var(--atlas-danger);
}

.atlas-auth-warning strong {
    display: block;
    margin-bottom: 3px;
    color: #6e1f31;
}

.atlas-auth-warning p { margin: 0; }

#no-storage-warning > div {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    color: inherit;
    font-size: 0.8125rem !important;
    line-height: 1.55 !important;
    text-align: left !important;
    text-shadow: none !important;
}

#no-storage-warning > div > .fa { display: none; }

.atlas-login-page .atlasm-alert-dialog-container-dim {
    background: rgba(4, 14, 27, 0.72);
    backdrop-filter: blur(8px);
}

.atlas-login-page .atlasm-alert-dialog {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    color: var(--atlas-slate-700);
    background: var(--atlas-white);
}

.atlas-login-page .atlasm-alert-dialog-shadow {
    box-shadow: 0 24px 80px rgba(2, 12, 26, 0.34);
}

.atlas-login-page #atlasm-alert-dialog-content,
.atlas-login-page #test-atlasm-alert-dialog-content {
    line-height: 1.55;
}

.atlas-login-page #atlasm-alert-dialog-buttons .alert-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    color: var(--atlas-white);
    background: var(--atlas-blue-600);
    font-weight: 700;
}

@keyframes atlas-shell-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 980px) {
    body.atlas-login-page { padding: clamp(16px, 4vw, 32px); }

    .atlas-auth-shell {
        grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
        min-height: min(700px, calc(100svh - clamp(32px, 8vw, 64px)));
    }

    .atlas-auth-intro,
    .atlas-auth-main {
        padding: clamp(32px, 4.5vw, 52px);
    }

    .atlas-auth-intro h1 { font-size: clamp(2.25rem, 5vw, 3.4rem); }
    .atlas-auth-benefits li { align-items: flex-start; }
}

@media (max-width: 820px) {
    body.atlas-login-page {
        display: block;
        padding: 0;
        background-image:
            radial-gradient(circle at 50% -10%, rgba(28, 140, 255, 0.28), transparent 38%),
            linear-gradient(155deg, #06111f 0%, #0a1e35 100%) !important;
    }

    .atlas-login-grid { background-size: 48px 48px; }

    .atlas-auth-shell {
        display: block;
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .atlas-auth-intro { display: none; }

    .atlas-auth-main {
        min-height: 100vh;
        min-height: 100svh;
        padding:
            max(38px, env(safe-area-inset-top))
            max(26px, env(safe-area-inset-right))
            max(38px, env(safe-area-inset-bottom))
            max(26px, env(safe-area-inset-left));
        background: rgba(255, 255, 255, 0.975);
    }

    .atlas-login-panel {
        width: min(100%, 460px);
        margin: auto;
    }

    .atlas-auth-mobile-brand { display: inline-flex; }
}

@media (max-width: 520px) {
    .atlas-auth-main {
        align-items: start;
        padding:
            max(28px, env(safe-area-inset-top))
            max(20px, env(safe-area-inset-right))
            max(28px, env(safe-area-inset-bottom))
            max(20px, env(safe-area-inset-left));
    }

    .atlas-auth-mobile-brand { margin-bottom: 34px; }
    .atlas-auth-mobile-brand img { width: 126px; }
    .atlas-login-header { margin-bottom: 26px; }
    .atlas-login-header h2 { font-size: 2rem; }

    .atlas-login-header p {
        margin-top: 10px;
        font-size: 0.875rem;
    }

    #login-form { gap: 16px; }

    #login-checkbox-div {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
    }

    #login-checkbox-div > div { min-width: 0; }

    .atlas-login-footer {
        display: block;
        margin-top: 24px;
        padding-top: 18px;
    }

    #login-copyright-link {
        margin-top: 9px;
        text-align: left;
    }
}

@media (max-width: 360px) {
    .atlas-auth-main {
        padding-right: max(16px, env(safe-area-inset-right));
        padding-left: max(16px, env(safe-area-inset-left));
    }

    #login-checkbox-div { grid-template-columns: 1fr; }
}

@media (max-height: 740px) and (min-width: 821px) {
    body.atlas-login-page {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .atlas-auth-shell { min-height: calc(100svh - 36px); }

    .atlas-auth-intro,
    .atlas-auth-main {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .atlas-auth-intro-copy {
        margin-top: 36px;
        margin-bottom: 32px;
    }

    .atlas-auth-benefits { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .atlas-auth-shell,
    .atlas-skip-link,
    #login_btn,
    #login_btn::after,
    .atlas-login-page #username,
    .atlas-login-page #password,
    .atlas-login-page #user_status,
    .atlas-login-page #login-checkbox-div .checkbox-custom-label::before {
        animation: none !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .atlas-auth-shell,
    .atlas-login-page #username,
    .atlas-login-page #password,
    .atlas-login-page #user_status,
    #login_btn,
    .atlas-login-page #login-checkbox-div .checkbox-custom-label::before {
        border: 1px solid CanvasText !important;
    }

    #login_btn {
        color: ButtonText !important;
        background: ButtonFace !important;
    }
}
