:root {
    color-scheme: light;
    --nx-bg-0: #f4f7fb;
    --nx-bg-1: #eaf0f7;
    --nx-card: rgba(255, 255, 255, 0.96);
    --nx-border: rgba(52, 72, 101, 0.16);
    --nx-text: #172238;
    --nx-text-soft: #52637c;
    --nx-text-muted: #708098;
    --nx-brand: #1f62d0;
    --nx-brand-rgb: 31, 98, 208;
    --nx-accent-rgb: 20, 151, 106;
    --nx-shadow-lg: 0 28px 72px rgba(40, 57, 82, 0.16);
    --nx-focus: 0 0 0 .24rem rgba(31, 98, 208, 0.16);
    --nx-radius-xl: 30px;
    --nx-radius-md: 16px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --nx-bg-0: #050b14;
    --nx-bg-1: #091321;
    --nx-card: rgba(10, 17, 29, 0.94);
    --nx-border: rgba(133, 160, 201, 0.18);
    --nx-text: #eef4ff;
    --nx-text-soft: #a8bbd7;
    --nx-text-muted: #7f95b4;
    --nx-brand: #2f74ff;
    --nx-brand-rgb: 47, 116, 255;
    --nx-accent-rgb: 31, 208, 137;
    --nx-shadow-lg: 0 34px 90px rgba(2, 8, 23, 0.56);
    --nx-focus: 0 0 0 .24rem rgba(47, 116, 255, 0.24);
    --nx-radius-xl: 30px;
    --nx-radius-md: 16px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.nx-login-page {
    margin: 0;
    font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--nx-text);
    background:
        radial-gradient(880px 540px at 10% 12%, rgba(47, 116, 255, 0.24), transparent 68%),
        radial-gradient(900px 560px at 90% 10%, rgba(61, 196, 255, 0.12), transparent 64%),
        radial-gradient(680px 380px at 70% 88%, rgba(31, 208, 137, 0.08), transparent 70%),
        linear-gradient(135deg, #050c16 0%, #09121f 28%, #0a1525 62%, #050b14 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.nx-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(125, 146, 180, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 146, 180, 0.05) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: .18;
    pointer-events: none;
}

.nx-login-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 1.2vw, 20px) clamp(12px, 1.8vw, 24px);
    position: relative;
    z-index: 1;
}

.nx-login-shell {
    width: min(1400px, 100%);
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(348px, 390px);
    grid-template-areas: "visual panel";
    gap: clamp(12px, 1.2vw, 20px);
    align-items: center;
}

.nx-login-panel, .nx-login-visual { min-height: 0; }
.nx-login-panel {
    grid-area: panel;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nx-login-visual {
    grid-area: visual;
    min-width: 0;
    display: flex;
    align-items: center;
}

.nx-login-card {
    width: 100%;
    padding: 18px 18px 16px;
    border-radius: var(--nx-radius-xl);
    background:
        linear-gradient(180deg, rgba(16, 27, 45, 0.98), rgba(9, 15, 27, 0.98)),
        radial-gradient(420px 260px at 0% 0%, rgba(47, 116, 255, 0.12), transparent 74%);
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: var(--nx-shadow-lg);
    position: relative;
    overflow: hidden;
}

.nx-login-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent);
    pointer-events: none;
}

.nx-login-card-head, .nx-login-head, .nx-form, .nx-footer { position: relative; z-index: 1; }

.nx-login-card-head {
    padding: 0 0 8px;
    margin-bottom: 4px;
}

.nx-brand-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nx-brand-sub {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #94a8c7;
    text-align: center;
}

.nx-brand-lockup-pair, .nx-brand-lockup {
    width: min(100%, 150px);
    max-width: 150px;
    display: block;
    flex: 0 0 auto;
}

.nx-brand-lockup-pair { position: relative; aspect-ratio: 892 / 407; }
.nx-brand-lockup-pair .theme-logo-variant {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}
.nx-brand-lockup-pair .theme-logo-variant.dark { display: block; }
.nx-brand-lockup { height: auto; object-fit: contain; }

.nx-login-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.nx-title { margin: 0; font-size: clamp(26px, 2.1vw, 34px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; color: #f4f8ff; }
.nx-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--nx-text-soft); font-weight: 700; }

.nx-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(47, 116, 255, 0.18), rgba(31, 208, 137, 0.12));
    border: 1px solid rgba(47, 116, 255, 0.24);
    color: #e7f1ff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.nx-secure-badge i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(47, 116, 255, 0.98);
    box-shadow: 0 0 0 4px rgba(47, 116, 255, 0.18);
    display: inline-block;
}

.alert {
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    padding: 11px 12px;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 800;
}
.alert.show { display: flex; }
.alert.danger { background: rgba(239, 68, 68, 0.12); color: #fecaca; border-color: rgba(239, 68, 68, 0.24); }
.alert.success { background: rgba(34, 197, 94, 0.12); color: #bbf7d0; border-color: rgba(34, 197, 94, 0.24); }

.nx-form { display: grid; gap: 10px; }
.nx-field { display: grid; gap: 6px; }
.nx-field-head, .row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nx-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7f95b4; }
.assist, .remember, .safe, .footer { color: var(--nx-text-soft); }
.assist { font-size: 10px; font-weight: 800; }

.link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(47, 116, 255, 0.10);
    border: 1px solid rgba(47, 116, 255, 0.18);
    color: #cfe0ff;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
}
.link:hover { background: rgba(47, 116, 255, 0.15); border-color: rgba(47, 116, 255, 0.24); }

.control { position: relative; }

.input {
    width: 100%;
    height: 46px;
    padding: 0 84px 0 16px;
    border-radius: var(--nx-radius-md);
    border: 1px solid rgba(96, 126, 170, 0.24);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), #0f1a2c;
    color: var(--nx-text);
    font-size: 12.5px;
    font-weight: 800;
    outline: none;
    transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.input::placeholder { color: rgba(168, 187, 215, 0.62); }
.input:focus { border-color: rgba(47, 116, 255, 0.54); background: #122038; box-shadow: var(--nx-focus); }

.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--nx-text);
    caret-color: var(--nx-text);
    box-shadow: 0 0 0 1000px #122038 inset;
    transition: background-color 9999s ease-in-out 0s;
}

.nx-captcha-field {
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(47, 116, 255, 0.08), rgba(11, 22, 39, 0.36));
    border: 1px solid rgba(96, 126, 170, 0.18);
}

.nx-captcha-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    gap: 10px;
    align-items: center;
}

.nx-captcha-input {
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nx-captcha-preview {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.nx-captcha-image {
    width: 92px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(96,126,170,.24);
    background: #0f1a2c;
    padding: 4px;
    box-sizing: border-box;
    object-fit: contain;
}

.nx-captcha-refresh {
    flex: 0 0 auto;
}

.nx-captcha-note {
    margin-top: 4px;
    color: #93acd1;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.is-invalid { border-color: rgba(239, 68, 68, 0.50) !important; box-shadow: none !important; }
.text-danger { color: #fca5a5; font-size: 12px; font-weight: 800; }

.right-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-ico { width: 17px; height: 17px; opacity: .72; pointer-events: none; }

.eye-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(96, 126, 170, 0.24);
    background: rgba(255,255,255,0.06);
    color: var(--nx-text);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.eye-btn:hover { background: rgba(255,255,255,0.10); border-color: rgba(47, 116, 255, 0.28); box-shadow: 0 12px 26px rgba(2, 8, 23, 0.24); }
.eye-btn:active { transform: translateY(1px); }

.tip {
    position: absolute;
    right: 10px;
    top: calc(100% + 10px);
    display: none;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(4, 9, 16, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fbff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    box-shadow: 0 18px 40px rgba(0,0,0,.38);
    z-index: 4;
}
.tip.show { display: block; }

.remember { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; }
.remember input { width: 16px; height: 16px; accent-color: #3b82f6; }

.btn {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: var(--nx-radius-md);
    background: linear-gradient(90deg, #1d4ed8 0%, #2f74ff 40%, #1fd089 100%);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
}
.btn:hover { filter: brightness(1.05); }
.btn[disabled] { opacity: .76; cursor: not-allowed; }

.spinner {
    width: 18px;
    height: 18px;
    display: none;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.42);
    border-top-color: #ffffff;
    animation: nx-spin .8s linear infinite;
}
.btn.busy .spinner { display: inline-block; }

.safe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
}
.lock { width: 14px; height: 14px; opacity: .72; }
.footer { margin-top: 12px; font-size: 10px; text-align: center; font-weight: 700; }
.nx-company-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nx-company-link:hover { color: var(--nx-text); }
.nx-company-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.nx-visual-frame {
    width: 100%;
    padding: clamp(8px, .8vw, 12px);
    border-radius: var(--nx-radius-xl);
    border: 1px solid rgba(96, 122, 162, 0.22);
    background:
        radial-gradient(620px 300px at 16% 18%, rgba(46, 106, 223, 0.18), transparent 70%),
        radial-gradient(520px 260px at 88% 15%, rgba(34, 197, 94, 0.10), transparent 70%),
        linear-gradient(180deg, rgba(9, 15, 28, 0.90), rgba(6, 12, 22, 0.72));
    box-shadow: 0 32px 72px rgba(2, 8, 23, 0.38);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nx-visual-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1520 / 930;
    min-height: 0;
    max-height: min(80vh, 860px);
    display: flex;
    padding: 0;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        linear-gradient(180deg, rgba(7, 14, 26, 0.82), rgba(6, 11, 20, 0.58));
    border: 1px solid rgba(110, 136, 174, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.nx-visual-stage-surface {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
}

.nx-visual-art {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center 50%;
    transform: none;
    display: block;
}

@keyframes nx-spin { to { transform: rotate(360deg); } }

@media (max-width: 1400px) {
    .nx-login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 378px);
    }
}

@media (max-width: 1180px) {
    .nx-login-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "panel"
            "visual";
        min-height: auto;
        gap: 16px;
    }

    .nx-login-panel,
    .nx-login-visual {
        width: 100%;
    }

    .nx-login-card,
    .nx-visual-frame {
        max-width: 860px;
        margin: 0 auto;
    }

    .nx-visual-frame { padding: 8px; }
    .nx-visual-stage {
        max-height: none;
        aspect-ratio: 1520 / 930;
    }
}

@media (max-width: 920px) {
    .nx-login-screen {
        align-items: flex-start;
        padding: 16px 14px;
    }

    .nx-login-shell {
        gap: 14px;
        width: min(760px, 100%);
        margin: 0 auto;
    }

    .nx-login-card {
        padding: 20px 18px 18px;
    }

    .nx-login-head {
        gap: 10px;
    }

    .nx-title {
        font-size: clamp(28px, 5.4vw, 34px);
    }

    .nx-hint {
        font-size: 14px;
        max-width: 34rem;
    }

    .nx-visual-stage {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 760px) {
    .nx-login-screen {
        padding: 12px;
    }

    .nx-login-shell {
        gap: 12px;
        width: 100%;
    }

    .nx-login-visual {
        display: none;
    }

    .nx-login-card,
    .nx-visual-frame {
        border-radius: 22px;
    }

    .nx-login-card {
        padding: 18px 14px 16px;
    }

    .nx-login-head {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 12px;
    }

    .nx-title-wrap {
        width: 100%;
    }

    .nx-title {
        font-size: clamp(30px, 7vw, 34px);
    }

    .nx-hint {
        margin-top: 6px;
        font-size: 13px;
    }

    .nx-secure-badge {
        align-self: flex-start;
        max-width: 100%;
        white-space: normal;
    }

    .nx-field-head,
    .row2 {
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        gap: 6px 10px;
    }

    .nx-field-head > * ,
    .row2 > * {
        max-width: 100%;
    }

    .nx-field-head .assist {
        width: 100%;
    }

    .link {
        min-height: 34px;
        padding-inline: 12px;
    }

    .input {
        height: 48px;
        padding-left: 14px;
    }

    .nx-captcha-grid {
        grid-template-columns: 1fr;
    }

    .nx-captcha-preview {
        justify-content: space-between;
        width: 100%;
    }

    .tip {
        left: 0;
        right: auto;
        max-width: min(260px, calc(100vw - 56px));
    }

    .remember {
        align-items: center;
        line-height: 1.45;
    }

    .safe {
        text-align: center;
        line-height: 1.45;
    }

    .footer {
        line-height: 1.5;
    }

    .nx-login-panel {
        width: min(100%, 440px);
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .nx-login-screen {
        padding: 10px;
    }

    .nx-login-card {
        padding: 16px 12px 14px;
        min-height: calc(100dvh - 20px);
        justify-content: center;
    }

    .nx-brand-lockup-pair,
    .nx-brand-lockup {
        max-width: 132px;
    }

    .nx-brand-sub,
    .assist {
        font-size: 9px;
    }

    .nx-title {
        font-size: clamp(28px, 8vw, 32px);
    }

    .nx-hint {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .nx-label {
        font-size: 9px;
    }

    .nx-secure-badge {
        width: 100%;
        justify-content: center;
        padding-inline: 14px;
    }

    .link {
        min-height: 32px;
        padding-inline: 10px;
    }

    .btn {
        min-height: 46px;
        font-size: 13px;
    }

    .nx-captcha-field {
        padding: 9px;
    }

    .nx-captcha-preview {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .nx-visual-stage {
        aspect-ratio: 4 / 3;
        max-height: 220px;
    }
}

@media (max-width: 440px) {
    .nx-login-screen {
        padding: 8px;
    }

    .nx-login-shell {
        gap: 10px;
    }

    .nx-login-card {
        padding: 14px 10px 12px;
        border-radius: 20px;
    }

    .nx-brand-band {
        gap: 6px;
    }

    .nx-brand-lockup-pair,
    .nx-brand-lockup {
        max-width: 120px;
    }

    .nx-login-head {
        margin-bottom: 10px;
    }

    .nx-title {
        font-size: clamp(25px, 9vw, 29px);
    }

    .nx-hint {
        font-size: 12px;
    }

    .input {
        height: 46px;
        padding-right: 72px;
    }

    .eye-btn {
        width: 32px;
        height: 32px;
        border-radius: 11px;
    }

    .btn {
        min-height: 44px;
    }

    .safe {
        font-size: 11px;
    }

    .footer {
        margin-top: 10px;
        font-size: 9px;
    }

    .nx-visual-frame {
        display: none;
    }
}


html[data-theme="light"] body.nx-login-page {
    background:
        radial-gradient(880px 540px at 10% 12%, rgb(47 116 255 / 13%), transparent 68%),
        radial-gradient(900px 560px at 90% 10%, rgb(61 196 255 / 10%), transparent 64%),
        linear-gradient(135deg, #f8fafc 0%, #eef3f9 55%, #e8eff7 100%);
}

html[data-theme="light"] body.nx-login-page::before {
    background:
        linear-gradient(rgb(72 94 126 / 7%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(72 94 126 / 7%) 1px, transparent 1px);
}

html[data-theme="light"] .nx-login-card {
    background: linear-gradient(180deg, rgb(255 255 255 / 98%), rgb(248 250 253 / 98%));
    border-color: rgb(63 82 110 / 14%);
}

html[data-theme="light"] .nx-title { color: #14213a; }
html[data-theme="light"] .nx-brand-sub,
html[data-theme="light"] .nx-label { color: #61728a; }
html[data-theme="light"] .nx-secure-badge { color: #17407b; }
html[data-theme="light"] .input,
html[data-theme="light"] .password-meter,
html[data-theme="light"] .eye-btn {
    color: var(--nx-text);
    background: #fff;
    border-color: rgb(64 88 124 / 22%);
}
html[data-theme="light"] .input:focus { background: #fff; }
html[data-theme="light"] .input::placeholder { color: rgb(91 108 133 / 68%); }
html[data-theme="light"] .input:-webkit-autofill,
html[data-theme="light"] .input:-webkit-autofill:hover,
html[data-theme="light"] .input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--nx-text);
    caret-color: var(--nx-text);
    background: #fff;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
}
html[data-theme="light"] .eye-btn:hover { background: #eef4fb; }
html[data-theme="light"] .alert.danger { color: #a42424; }
html[data-theme="light"] .alert.success { color: #176b3c; }
html[data-theme="light"] .text-danger { color: #b4232f; }
html[data-theme="light"] .nx-brand-lockup-pair .theme-logo-variant.dark { display: none; }
html[data-theme="light"] .nx-brand-lockup-pair .theme-logo-variant.light { display: block; }


body.nx-login-page,
body.nx-login-page * {
    letter-spacing: 0 !important;
}

.nx-login-screen {
    padding: clamp(12px, 1.05vw, 18px) clamp(12px, 1.5vw, 22px);
}

.nx-login-shell {
    width: min(1280px, 100%);
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 372px);
    gap: clamp(10px, 1vw, 16px);
}

.nx-login-card {
    border-radius: 22px;
    padding: 16px 16px 14px;
}

.nx-title {
    font-size: clamp(24px, 1.6vw, 30px);
    line-height: 1.08;
}

.nx-hint {
    font-size: 12.5px;
    line-height: 1.45;
}

.nx-form {
    gap: 9px;
}

.input {
    height: 42px;
    font-size: 12.25px;
    border-radius: 13px;
}

.btn {
    min-height: 42px;
    font-size: 13px;
    border-radius: 13px;
}

.nx-secure-badge,
.link {
    font-size: 10px;
}

.nx-visual-frame,
.nx-visual-stage {
    border-radius: 22px;
}

@media (max-width: 1180px) {
    .nx-login-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "panel"
            "visual";
        width: min(860px, 100%);
    }
}

@media (max-width: 760px) {
    .nx-login-screen {
        min-height: 100dvh;
        align-items: center;
        padding: 10px;
    }

    .nx-login-card {
        min-height: auto;
        max-width: 430px;
        margin: 0 auto;
    }

    .footer {
        display: none;
    }
}

@media (max-width: 440px) {
    .nx-login-card {
        padding: 14px 11px 12px;
    }

    .nx-title {
        font-size: 25px;
    }

    .nx-hint {
        font-size: 12px;
    }
}



html[data-theme="dark"] .nx-login-card {
    color: #eef5ff;
    background:
        radial-gradient(380px 230px at 0% 0%, rgba(47, 116, 255, 0.18), transparent 74%),
        radial-gradient(260px 160px at 100% 100%, rgba(31, 208, 137, 0.09), transparent 76%),
        linear-gradient(155deg, #111f35 0%, #0a1526 52%, #07101d 100%);
    border-color: rgba(126, 164, 218, 0.25);
    box-shadow: 0 30px 76px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"] .nx-login-card::before {
    height: 150px;
    background: linear-gradient(180deg, rgba(99, 181, 255, 0.13), transparent);
}

html[data-theme="dark"] .nx-title { color: #f7fbff; }
html[data-theme="dark"] .nx-brand-sub,
html[data-theme="dark"] .nx-label { color: #a9bedb; }
html[data-theme="dark"] .nx-hint,
html[data-theme="dark"] .assist,
html[data-theme="dark"] .remember,
html[data-theme="dark"] .safe,
html[data-theme="dark"] .footer { color: #bfd0e8; }
html[data-theme="dark"] .nx-secure-badge { color: #e5f0ff; }

html[data-theme="dark"] .input,
html[data-theme="dark"] .password-meter,
html[data-theme="dark"] .eye-btn {
    color: #f1f6ff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)), #091526;
    border-color: rgba(126, 164, 218, 0.29);
}

html[data-theme="dark"] .input::placeholder { color: rgba(190, 210, 239, 0.68); }
html[data-theme="dark"] .input:focus {
    background: #0e1d32;
    border-color: rgba(91, 149, 255, 0.88);
    box-shadow: 0 0 0 .24rem rgba(72, 132, 255, 0.20), 0 8px 20px rgba(1, 8, 20, 0.24);
}
html[data-theme="dark"] .input:-webkit-autofill,
html[data-theme="dark"] .input:-webkit-autofill:hover,
html[data-theme="dark"] .input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f1f6ff;
    caret-color: #f1f6ff;
    -webkit-box-shadow: 0 0 0 1000px #0e1d32 inset;
    box-shadow: 0 0 0 1000px #0e1d32 inset;
}
html[data-theme="dark"] .eye-btn:hover { background: #142844; border-color: rgba(91, 149, 255, 0.60); }
html[data-theme="dark"] .link {
    color: #d8e7ff;
    background: rgba(91, 149, 255, 0.14);
    border-color: rgba(108, 164, 255, 0.32);
}
html[data-theme="dark"] .alert.danger { color: #fecaca; }
html[data-theme="dark"] .alert.success { color: #bbf7d0; }
html[data-theme="dark"] .text-danger { color: #fecaca; }


html[data-theme="dark"] body.nx-login-page {
    background:
        radial-gradient(700px 460px at -6% 18%, rgba(42, 129, 255, 0.30), transparent 70%),
        radial-gradient(680px 480px at 102% 84%, rgba(23, 202, 160, 0.16), transparent 70%),
        radial-gradient(520px 300px at 50% -10%, rgba(92, 178, 255, 0.13), transparent 68%),
        linear-gradient(135deg, #071220 0%, #0c1b30 48%, #081526 100%);
}

html[data-theme="dark"] body.nx-login-page::before {
    opacity: .34;
    background:
        linear-gradient(rgba(143, 182, 232, 0.085) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 182, 232, 0.085) 1px, transparent 1px);
}

body.nx-login-page::after {
    content: "";
    position: fixed;
    width: min(46vw, 620px);
    height: min(46vw, 620px);
    right: -15vw;
    bottom: -30vw;
    border: 1px solid rgba(103, 192, 255, 0.22);
    border-radius: 50%;
    box-shadow:
        0 0 0 54px rgba(56, 140, 231, 0.045),
        0 0 0 118px rgba(51, 198, 163, 0.025);
    pointer-events: none;
}


.nx-login-screen {
    isolation: isolate;
    overflow: hidden;
}
.nx-login-screen::before {
    position: absolute;
    z-index: 0;
    width: 128vw;
    height: min(42vh, 28rem);
    left: -14vw;
    bottom: -22vh;
    border: 1px solid rgb(100 157 255 / 15%);
    border-radius: 50% 50% 0 0;
    background:
        repeating-linear-gradient(90deg, rgb(92 147 255 / 10%) 0 1px, transparent 1px 3.25rem),
        repeating-linear-gradient(0deg, rgb(48 213 180 / 8%) 0 1px, transparent 1px 2.5rem),
        radial-gradient(ellipse at center, rgb(47 116 255 / 12%), transparent 66%);
    box-shadow: 0 -1rem 4rem rgb(47 116 255 / 12%), inset 0 0 4rem rgb(36 211 174 / 5%);
    content: "";
    opacity: .74;
    pointer-events: none;
    transform: perspective(56rem) rotateX(67deg);
    transform-origin: center bottom;
}
.nx-login-screen::after {
    position: absolute;
    z-index: 0;
    width: min(28vw, 32rem);
    height: min(14vw, 14rem);
    right: 9vw;
    bottom: 5vh;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgb(61 143 255 / 15%), rgb(45 211 178 / 5%) 42%, transparent 72%);
    box-shadow: 0 0 4rem 1rem rgb(47 116 255 / 8%);
    content: "";
    filter: blur(.25rem);
    pointer-events: none;
}
.nx-login-shell { position: relative; z-index: 1; }

html[data-theme="dark"] body.nx-login-page {
    background:
        radial-gradient(50rem 28rem at -6% 12%, rgb(48 98 245 / 19%), transparent 70%),
        radial-gradient(48rem 30rem at 106% 90%, rgb(36 205 169 / 11%), transparent 72%),
        radial-gradient(38rem 20rem at 52% 100%, rgb(31 75 165 / 12%), transparent 72%),
        linear-gradient(135deg, #050c17 0%, #091425 48%, #06101d 100%);
}
html[data-theme="dark"] body.nx-login-page::before {
    opacity: .26;
    background:
        linear-gradient(rgb(118 157 220 / 7%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(118 157 220 / 7%) 1px, transparent 1px);
}
html[data-theme="dark"] .nx-login-screen::before {
    border-color: rgb(103 154 255 / 21%);
    background:
        repeating-linear-gradient(90deg, rgb(97 144 255 / 14%) 0 1px, transparent 1px 3.25rem),
        repeating-linear-gradient(0deg, rgb(54 221 186 / 10%) 0 1px, transparent 1px 2.5rem),
        radial-gradient(ellipse at center, rgb(63 108 255 / 17%), transparent 66%);
    box-shadow: 0 -1rem 4rem rgb(46 106 255 / 17%), inset 0 0 4rem rgb(36 211 174 / 8%);
}
html[data-theme="dark"] .nx-login-screen::after { background: radial-gradient(ellipse, rgb(66 112 255 / 19%), rgb(32 209 175 / 6%) 42%, transparent 72%); }

/* Purple dark-mode finish for all authentication screens.  Kept here at the
   end because this stylesheet has older blue variants above it. */
html[data-theme="dark"] {
    --nx-bg-0: #100b1d;
    --nx-bg-1: #191128;
    --nx-card: rgba(25, 17, 40, .96);
    --nx-border: rgba(225, 207, 255, .22);
    --nx-text: #fbf8ff;
    --nx-text-soft: #ded4f2;
    --nx-text-muted: #b7a9ca;
    --nx-brand: #b69aff;
    --nx-brand-rgb: 182, 154, 255;
    --nx-accent-rgb: 85, 221, 193;
    --nx-focus: 0 0 0 .24rem rgba(182, 154, 255, .28);
}

html[data-theme="dark"] body.nx-login-page {
    background:
        radial-gradient(50rem 28rem at -6% 12%, rgb(160 113 255 / 24%), transparent 70%),
        radial-gradient(48rem 30rem at 106% 90%, rgb(85 221 193 / 13%), transparent 72%),
        radial-gradient(38rem 20rem at 52% 100%, rgb(111 65 202 / 16%), transparent 72%),
        linear-gradient(135deg, #0d0718 0%, #171027 48%, #100a1c 100%);
}

html[data-theme="dark"] .nx-login-card {
    color: var(--nx-text);
    background:
        radial-gradient(380px 230px at 0% 0%, rgb(190 164 255 / 19%), transparent 74%),
        radial-gradient(260px 160px at 100% 100%, rgb(85 221 193 / 9%), transparent 76%),
        linear-gradient(155deg, #25183b 0%, #191128 52%, #110a1e 100%);
    border-color: var(--nx-border);
}

html[data-theme="dark"] .nx-login-card::before { background: linear-gradient(180deg, rgb(190 164 255 / 16%), transparent); }
html[data-theme="dark"] .nx-title { color: #fffaff; }
html[data-theme="dark"] .nx-brand-sub,
html[data-theme="dark"] .nx-label { color: #dacdf2; }
html[data-theme="dark"] .input,
html[data-theme="dark"] .password-meter,
html[data-theme="dark"] .eye-btn { color: #fbf8ff; background: #1d132f; border-color: rgba(222, 204, 255, .28); }
html[data-theme="dark"] .input:focus { background: #241838; border-color: #c6adff; box-shadow: 0 0 0 .24rem rgb(182 154 255 / 24%); }
html[data-theme="dark"] .link { color: #f2ecff; background: rgb(182 154 255 / 15%); border-color: rgb(202 181 255 / 40%); }
html[data-theme="dark"] .nx-login-screen::before { border-color: rgb(190 164 255 / 24%); background: radial-gradient(ellipse at center, rgb(163 118 255 / 18%), transparent 66%); }
html[data-theme="dark"] .nx-login-screen::after { background: radial-gradient(ellipse, rgb(182 154 255 / 20%), rgb(85 221 193 / 7%) 42%, transparent 72%); }

@media (max-width: 760px) {
    .nx-login-screen::before { width: 180vw; left: -40vw; bottom: -28vh; opacity: .48; }
    .nx-login-screen::after { width: 80vw; right: -20vw; }
}

@media (prefers-reduced-motion: reduce) {
    .nx-login-screen::before { transform: none; }
}
/* The login form supplies its own accessible show/hide button. */
#loginForm #password::-ms-reveal {
    display: none;
}
