/* The login artwork is deliberately desktop-only. Small screens keep the simple form layout. */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
    html, body { min-height: 100%; }
    body.split-login {
        display: grid;
        grid-template-columns: minmax(0, 1.7fr) minmax(390px, 1fr);
        place-items: stretch;
        min-height: 100vh;
        padding: 0;
        overflow-x: hidden;
        background: #f5efea;
    }
    body.split-login .theme-toggle-float {
        top: 22px;
        right: 22px;
        color: #3b2b27;
        background: rgb(255 255 255 / 72%);
        border-color: rgb(59 43 39 / 18%);
        backdrop-filter: blur(12px);
    }
    body.split-login .login-art {
        position: relative;
        min-width: 0;
        min-height: 100vh;
        overflow: hidden;
        background: #d93111;
    }
    body.split-login .login-art::after {
        position: absolute;
        inset: 0;
        z-index: 1;
        content: "";
        pointer-events: none;
        opacity: .18;
        mix-blend-mode: soft-light;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
    }
    body.split-login .login-art canvas {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 100vh;
    }
    body.split-login .auth-shell {
        position: relative;
        width: 100%;
        min-width: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-block: clamp(48px, 8vh, 80px);
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }
    body.split-login .auth-brand {
        position: static;
        width: min(100%, 480px);
        margin: 0 auto 28px;
        padding: 0 32px;
        border: 0;
        background: transparent;
        color: #171717;
    }
    body.split-login .auth-body {
        width: min(100%, 480px);
        margin: 0 auto;
        padding: 0 32px;
    }
    body.split-login .auth-body h1 { font-size: 32px; letter-spacing: -.055em; }
    body.split-login .auth-body > p { margin: 9px 0 30px; }
    body.split-login .auth-form { gap: 18px; }
    body.split-login .auth-form label { gap: 7px; font-size: 11px; font-weight: 550; letter-spacing: .03em; }
    body.split-login .auth-form input { min-height: 48px; padding: 11px 13px; border-radius: 9px; }
    body.split-login .auth-form .auth-check { margin-top: -3px; }
    body.split-login .auth-check input {
        width: 16px;
        height: 16px;
        min-height: 16px;
        margin: 0;
        padding: 0;
        accent-color: #d93111;
    }
    body.split-login .auth-button {
        width: 100%;
        min-height: 48px;
        color: #fff !important;
        background: linear-gradient(180deg, #f26e4e, #d93111 52%, #bd2c0e) !important;
        border-color: #bd2c0e !important;
        border-top-color: #ff9981 !important;
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 2px 5px rgb(0 0 0 / 22%);
    }
    body.split-login .auth-button:hover { filter: brightness(1.06); }
    body.split-login .auth-button:active { filter: brightness(.95); }
    body.split-login .auth-link { color: #d95636; }
    body.split-login .auth-link:hover { color: #f07150; }
    body.split-login .auth-form > span { color: var(--muted); }
    body.split-login .auth-form input:not([type=checkbox]) {
        background: #fff;
        color: #171717;
    }
    body.split-login .auth-form input:-webkit-autofill,
    body.split-login .auth-form input:-webkit-autofill:hover,
    body.split-login .auth-form input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 1000px #fff inset;
        -webkit-text-fill-color: #171717;
        caret-color: #171717;
    }
    html[data-theme=dark] body.split-login { background: #171717; }
    html[data-theme=dark] body.split-login .auth-shell { background: #151515; }
    html[data-theme=dark] body.split-login .auth-brand { background: transparent; color: #f4f1ef; }
    html[data-theme=dark] body.split-login .auth-body p,
    html[data-theme=dark] body.split-login .auth-form > span { color: #9d9d9d; }
    html[data-theme=dark] body.split-login .auth-form label { color: #bcbcbc; }
    html[data-theme=dark] body.split-login .auth-form input { background: #202020; color: #f4f1ef; border-color: #383838; }
    html[data-theme=dark] body.split-login .auth-form input:-webkit-autofill,
    html[data-theme=dark] body.split-login .auth-form input:-webkit-autofill:hover,
    html[data-theme=dark] body.split-login .auth-form input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 1000px #202020 inset;
        -webkit-text-fill-color: #f4f1ef;
        caret-color: #f4f1ef;
    }
    html[data-theme=dark] body.split-login .auth-form input:focus { border-color: #757575; box-shadow: 0 0 0 3px rgb(255 255 255 / 10%); }
    html[data-theme=dark] body.split-login .theme-toggle-float { color: #f4f1ef; background: rgb(23 23 23 / 72%); border-color: rgb(255 255 255 / 16%); }
}

@media (max-width: 899px), (hover: none), (pointer: coarse) {
    .login-art { display: none !important; }
}
