html { min-height: 100%; background: #07121d; }
body.box-login {
    --accent: #31d4f3;
    --scene: url('/box-servers.webp');
    display: block;
    width: 100%;
    margin: 0;
    background: #07121d;
    color: #f5faff;
    color-scheme: dark;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.box-client { --scene: url('/box-catalog.webp'); }
.box-login .box-shell {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 440px);
    justify-content: end;
    align-items: center;
    padding: clamp(18px, 5vw, 76px) clamp(22px, 6vw, 100px);
    background: linear-gradient(90deg, #05121e08 20%, #05121e40 57%, #050f1ad9 100%),
        var(--scene) center / cover no-repeat;
}
.box-admin .box-shell::before,
.box-admin .box-shell::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
}
.box-admin .box-shell::before {
    background:
        radial-gradient(circle at 8% 24%, #1adbf3 0 1px, #04bdff65 2px, transparent 7px),
        radial-gradient(circle at 19% 39%, #45ddff 0 1px, #0babff60 2px, transparent 7px),
        radial-gradient(circle at 29% 60%, #afffbb 0 1px, #34f57855 2px, transparent 6px);
    animation: box-leds 3.4s ease-in-out infinite alternate;
}
.box-admin .box-shell::after {
    background:
        radial-gradient(circle at 14% 69%, #81edff 0 1px, #04bdff50 2px, transparent 8px),
        radial-gradient(circle at 26% 33%, #87ff9c 0 1px, #36e77250 2px, transparent 6px),
        radial-gradient(circle at 37% 49%, #45ddff 0 1px, #15b0ff60 2px, transparent 7px);
    animation: box-leds 4.1s -1.2s ease-in-out infinite alternate;
}
@keyframes box-leds {
    0%, 20% { opacity: .18; }
    56%, 100% { opacity: .87; }
}
.box-card {
    min-width: 0;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid #4cdcf3bf;
    border-radius: 21px;
    background: #071321f7;
    box-shadow: 0 20px 65px #000a;
}
.box-logo {
    display: block;
    width: min(100%, 345px);
    height: auto;
    margin: 0 auto 20px;
}
.box-card h1 {
    color: #f5faff;
    font: 760 clamp(21px, 4vw, 29px)/1.18 system-ui, sans-serif;
    margin: 0 0 22px;
    text-align: center;
    letter-spacing: -.035em;
}
.box-card form { display: grid; min-width: 0; gap: 8px; }
.box-card label { color: #e0f2fa; font-size: 14px; margin: 4px 0 0; }
.box-card input:not([type=checkbox]) {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border-radius: 9px;
    border: 1px solid #47c8e288;
    background: #152737;
    color: #fff;
    font: inherit;
}
.box-password { position: relative; min-width: 0; }
.box-password input:not([type=checkbox]) { padding-right: 78px; }
#box-reveal {
    position: absolute;
    inset: 4px 4px 4px auto;
    padding-inline: 9px;
    border: 0;
    border-radius: 6px;
    background: #203b50;
    color: #e4f9ff;
    font-size: 12px;
}
.box-card :is(button,input,a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.box-option { display: flex; align-items: center; gap: 7px; }
.box-option input { accent-color: #0062c7; }
.box-captcha { overflow: auto; }
.box-captcha p:empty { display: none; }
.box-captcha p { color: #ffe0ac; margin-top: 7px; }
#button-login {
    min-height: 52px;
    margin-top: 12px;
    position: relative;
    padding-inline: 38px;
    border: 1px solid #217fe6;
    border-radius: 9px;
    color: #fff;
    font-weight: 760;
    background: #0062c7;
    transition: background-color .2s, box-shadow .2s, transform .2s;
}
#button-login::after {
    position: absolute;
    right: 16px;
    top: 50%;
    content: "→" / "";
    transform: translateY(-50%);
    transition: transform .2s;
}
#button-login:is(:hover, :focus-visible) {
    background: #0869d1;
    box-shadow: 0 0 0 1px #48e5ff, 0 0 19px #15ceff85;
}
#button-login:is(:hover, :focus-visible)::after { transform: translate(4px, -50%); }
#button-login:active { transform: scale(.985); }
#box-reveal:hover { background: #284960; }
.box-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 19px; }
.box-links a { color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 650px) {
    .box-login .box-shell { justify-content: center; padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .box-admin .box-shell::before, .box-admin .box-shell::after { animation: none; opacity: .35; }
    #button-login, #button-login::after { transition: none; }
}
@media (max-width: 420px) { .box-card { padding-inline: 17px; } }
