/* =====================================================================
   Sign-in page (Views/UserAccount/Login.cshtml) - loaded by that view only.
   Left: royal-blue business ecosystem (55%). Right: white sign-in (45%).
   Light/dark follows html[data-theme]. Accent: the page's royal blue,
   or the saved app accent (html[data-login-accent="app"]).
   Ids, names and script hooks are untouched.
   ===================================================================== */

/* ---------- Tokens ---------- */

.nv-login {
    --nv-font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    --nv-p: #1d5bf0;
    --nv-p-rgb: 29, 91, 240;
    --nv-p-dark: #1e40af;
    --nv-p-light: #3b82f6;
    --nv-cyan-rgb: 56, 189, 248;
    --nv-blue-1: #041545;
    --nv-blue-2: #0a2a8f;
    --nv-blue-3: #1546d6;
    --nv-surface: #ffffff;
    --nv-field: #ffffff;
    --nv-border: #cfd8ea;
    --nv-border-hover: #a9b8d6;
    --nv-heading: #0b1b4d;
    --nv-text: #0f172a;
    --nv-label: #1e293b;
    --nv-muted: #475569;
    --nv-faint: #94a3b8;
    --nv-icon: #334155;
    --nv-decor: rgba(59, 130, 246, .14);
    font-family: var(--nv-font);
    color: var(--nv-text);
}

html[data-login-accent="app"] .nv-login {
    --nv-p: var(--ar-primary);
    --nv-p-rgb: var(--ar-primary-rgb);
    --nv-p-dark: var(--ar-primary-dark);
    --nv-p-light: var(--ar-primary-light);
}

html[data-theme="dark"] .nv-login {
    --nv-blue-1: #020a26;
    --nv-blue-2: #061a5e;
    --nv-blue-3: #0e319c;
    --nv-surface: #0b1120;
    --nv-field: #111a2b;
    --nv-border: #26334a;
    --nv-border-hover: #3a4a66;
    --nv-heading: #f1f5f9;
    --nv-text: #e2e8f0;
    --nv-label: #cbd5e1;
    --nv-muted: #94a3b8;
    --nv-faint: #64748b;
    --nv-icon: #94a3b8;
    --nv-decor: rgba(59, 130, 246, .12);
}

/* No script (data-theme never set): follow the device */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) .nv-login {
        --nv-surface: #0b1120;
        --nv-field: #111a2b;
        --nv-border: #26334a;
        --nv-heading: #f1f5f9;
        --nv-text: #e2e8f0;
        --nv-label: #cbd5e1;
        --nv-muted: #94a3b8;
        --nv-icon: #94a3b8;
    }
}

.nv-login [hidden] {
    display: none !important;
}

.nv-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- Page frame: replaces the centred-card body of _LayoutLogin ---------- */

.login-page:has(.nv-login) {
    display: block;
    height: auto;
    min-height: 100vh;
    padding: 0;
    background: #041545;
    background-image: none;
}

    .login-page:has(.nv-login) .cloginPage {
        display: block;
        min-height: 100vh;
    }

/* Desktop: exactly one screen high, no page scroll */
.nv-login {
    position: relative;
    display: grid;
    grid-template-columns: 55fr 45fr;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--nv-surface);
}

/* =====================================================================
   LEFT: business ecosystem
   ===================================================================== */

.nv-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: clamp(.75rem, 2.4vh, 1.75rem);
    min-height: 0;
    padding: clamp(1.25rem, 4.5vh, 3rem) clamp(5rem, 9vw, 9rem) clamp(1rem, 3.5vh, 2.25rem) clamp(1.75rem, 4.5vw, 4.5rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(60% 50% at 45% 62%, rgba(37, 99, 235, .55) 0, transparent 70%),
        radial-gradient(50% 40% at 100% 0%, rgba(59, 130, 246, .45) 0, transparent 70%),
        linear-gradient(150deg, var(--nv-blue-1) 0%, var(--nv-blue-2) 48%, var(--nv-blue-3) 100%);
}

    .nv-brand > .nv-company,
    .nv-brand > .nv-hero,
    .nv-brand > .nv-eco,
    .nv-brand > .nv-features {
        position: relative;
        z-index: 3;
    }

/* Background details: dot field, skyline, light swooshes, curved edge */
.nv-dots {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 38%;
    width: 46%;
    height: 34%;
    background-image: radial-gradient(rgba(147, 197, 253, .55) 1.4px, transparent 1.6px);
    background-size: 14px 14px;
    -webkit-mask-image: radial-gradient(ellipse at 60% 20%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 60% 20%, #000 0%, transparent 70%);
    pointer-events: none;
}

.nv-skyline {
    position: absolute;
    z-index: 1;
    right: 4%;
    bottom: 16%;
    width: 62%;
    height: 52%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
}

    .nv-skyline path {
        fill: rgba(8, 30, 110, .62);
    }

.nv-skyline-win rect {
    fill: rgba(125, 211, 252, .55);
}

.nv-swoosh {
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 26%;
    pointer-events: none;
}

    .nv-swoosh path {
        fill: none;
        vector-effect: non-scaling-stroke;
    }

.nv-swoosh-a {
    stroke: rgba(56, 189, 248, .55);
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, .8));
}

.nv-swoosh-b {
    stroke: rgba(147, 197, 253, .3);
    stroke-width: 1.2;
}

/* The white panel curves into the blue one, with two blue bands */
.nv-curve {
    position: absolute;
    z-index: 2;
    top: -12%;
    bottom: -12%;
    right: -9rem;
    width: 14rem;
    border-radius: 50%;
    background: var(--nv-surface);
    box-shadow: -.55rem 0 0 rgba(96, 165, 250, .85), -1.5rem 0 0 rgba(37, 99, 235, .55), -1.5rem 0 2.5rem rgba(56, 189, 248, .35);
    pointer-events: none;
}

/* Company: N mark, name, tagline */
.nv-company {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.nv-company-mark {
    flex: 0 0 auto;
    width: clamp(3rem, 4.4vw, 4.2rem);
    height: auto;
}

.nv-company-name {
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.01em;
}

.nv-company-tag {
    margin-top: .2rem;
    font-size: clamp(.8rem, 1vw, .98rem);
    color: rgba(226, 232, 240, .88);
}

/* Headline */
.nv-hero {
    max-width: 36rem;
}

.nv-headline {
    margin: 0;
    font-size: clamp(2.3rem, 4.1vw, 4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.03em;
    color: #fff;
}

    .nv-headline span {
        display: block;
    }

.nv-headline-accent {
    background: linear-gradient(90deg, #2f86ff 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #38bdf8;
}

.nv-hero-bar {
    display: block;
    width: 3.75rem;
    height: 4px;
    margin: clamp(.6rem, 1.6vh, 1rem) 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #22d3ee, #2f86ff);
}

.nv-lead {
    max-width: 30rem;
    margin: 0;
    font-size: clamp(.98rem, 1.3vw, 1.25rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, .92);
}

/* ---------- Ecosystem illustration ---------- */

.nv-eco {
    flex: 1 1 0;
    width: 100%;
    max-width: 44rem;
    min-height: 0;
    margin: 0 auto;
    container-type: size;
}

.nv-stage {
    position: absolute;
    inset: 0;
    /* One unit: scales the whole picture with the space it gets */
    --u: min(1cqw, 1.55cqh);
}

    .nv-stage > *,
    .nv-tile {
        position: absolute;
        transform: translate(-50%, -50%);
    }

/* Glowing rings and the stacked platform */
.nv-ring {
    left: 50%;
    top: 68%;
    border-radius: 50%;
    border: 2px solid rgba(var(--nv-cyan-rgb), .75);
    box-shadow: 0 0 calc(var(--u) * 2) rgba(var(--nv-cyan-rgb), .6), inset 0 0 calc(var(--u) * 2) rgba(var(--nv-cyan-rgb), .35);
}

.nv-ring-1 {
    width: calc(var(--u) * 94);
    height: calc(var(--u) * 30);
}

.nv-ring-2 {
    width: calc(var(--u) * 70);
    height: calc(var(--u) * 22);
    border-color: rgba(147, 197, 253, .45);
    box-shadow: 0 0 calc(var(--u) * 1.5) rgba(var(--nv-cyan-rgb), .35);
}

.nv-disc {
    left: 50%;
    border-radius: 50%;
}

.nv-disc-1 {
    top: 70%;
    width: calc(var(--u) * 54);
    height: calc(var(--u) * 15);
    background: radial-gradient(ellipse at 50% 40%, #1e56d8 0%, #0b2a8f 70%);
    border: 2px solid rgba(var(--nv-cyan-rgb), .7);
    box-shadow: 0 calc(var(--u) * 1.6) 0 #0a2470, 0 calc(var(--u) * 1.6) calc(var(--u) * 3) rgba(var(--nv-cyan-rgb), .5);
}

.nv-disc-2 {
    top: 66%;
    width: calc(var(--u) * 42);
    height: calc(var(--u) * 11);
    background: radial-gradient(ellipse at 50% 40%, #2a6af0 0%, #1238a8 75%);
    border: 2px solid rgba(var(--nv-cyan-rgb), .8);
    box-shadow: 0 calc(var(--u) * 1.3) 0 #0d2d86;
}

.nv-disc-3 {
    top: 62.5%;
    width: calc(var(--u) * 32);
    height: calc(var(--u) * 8);
    background: radial-gradient(ellipse at 50% 45%, #7dd3fc 0%, #2f80ff 45%, #1546d6 100%);
    border: 2px solid rgba(186, 230, 253, .9);
    box-shadow: 0 calc(var(--u) * 1) 0 #1238a8, 0 0 calc(var(--u) * 4) rgba(var(--nv-cyan-rgb), .75);
}

/* Devices: phone, monitor with dashboard, card terminal */
.nv-devices {
    left: 50%;
    top: 45.5%;
    display: flex;
    align-items: flex-end;
    gap: calc(var(--u) * 1.4);
}

.nv-phone {
    position: relative;
    width: calc(var(--u) * 6.6);
    height: calc(var(--u) * 13);
    margin-right: calc(var(--u) * -2.4);
    z-index: 2;
    border-radius: calc(var(--u) * 1.2);
    padding: calc(var(--u) * 1.6) calc(var(--u) * .8);
    background: linear-gradient(180deg, #0f1e4d, #0b1638);
    box-shadow: 0 0 0 calc(var(--u) * .35) #1f2a44, 0 calc(var(--u) * 1.5) calc(var(--u) * 3) rgba(0, 0, 0, .5);
}

    .nv-phone i {
        display: block;
        height: calc(var(--u) * .9);
        margin-bottom: calc(var(--u) * .7);
        border-radius: 2px;
        background: rgba(96, 165, 250, .75);
    }

        .nv-phone i:nth-child(2) {
            width: 70%;
            background: rgba(56, 189, 248, .6);
        }

    .nv-phone b {
        display: block;
        height: calc(var(--u) * 4);
        border-radius: calc(var(--u) * .5);
        background: linear-gradient(180deg, rgba(59, 130, 246, .7), rgba(29, 78, 216, .4));
    }

.nv-monitor {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nv-screen {
    display: flex;
    gap: calc(var(--u) * .9);
    width: calc(var(--u) * 26);
    height: calc(var(--u) * 16);
    padding: calc(var(--u) * 1);
    border-radius: calc(var(--u) * 1);
    background: #f8fafc;
    box-shadow: 0 0 0 calc(var(--u) * .6) #111827, 0 0 calc(var(--u) * 4) rgba(var(--nv-cyan-rgb), .45);
}

.nv-screen-side {
    flex: 0 0 18%;
    padding: calc(var(--u) * .6);
    border-radius: calc(var(--u) * .5);
    background: #1e3a8a;
}

    .nv-screen-side i {
        display: block;
        height: calc(var(--u) * .7);
        margin-bottom: calc(var(--u) * .9);
        border-radius: 2px;
        background: rgba(191, 219, 254, .7);
    }

.nv-screen-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: calc(var(--u) * .9);
}

.nv-kpis {
    display: flex;
    gap: calc(var(--u) * .7);
    height: 30%;
}

    .nv-kpis i {
        flex: 1;
        border-radius: calc(var(--u) * .4);
    }

    .nv-kpis .k1 { background: #fb923c; }
    .nv-kpis .k2 { background: #22c55e; }
    .nv-kpis .k3 { background: #3b82f6; }

.nv-chart {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    gap: calc(var(--u) * .55);
    padding: calc(var(--u) * .6);
    border-radius: calc(var(--u) * .4);
    background: #e8eefb;
}

    .nv-chart span {
        flex: 1;
        height: var(--h);
        border-radius: 2px 2px 0 0;
        background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    }

.nv-monitor-neck {
    width: calc(var(--u) * 3);
    height: calc(var(--u) * 2.2);
    background: linear-gradient(180deg, #94a3b8, #64748b);
}

.nv-monitor-base {
    width: calc(var(--u) * 10);
    height: calc(var(--u) * .9);
    border-radius: 999px;
    background: #cbd5e1;
}

.nv-terminal {
    position: relative;
    z-index: 2;
    width: calc(var(--u) * 7.4);
    margin-left: calc(var(--u) * -2.4);
    padding: calc(var(--u) * .8);
    border-radius: calc(var(--u) * 1.2);
    background: linear-gradient(180deg, #1f2a44, #0f172a);
    box-shadow: 0 calc(var(--u) * 1.5) calc(var(--u) * 3) rgba(0, 0, 0, .5);
}

.nv-terminal-screen {
    height: calc(var(--u) * 4);
    margin-bottom: calc(var(--u) * .8);
    padding: calc(var(--u) * .6);
    border-radius: calc(var(--u) * .4);
    background: linear-gradient(180deg, #e0f2fe, #bae6fd);
}

    .nv-terminal-screen i {
        display: block;
        height: calc(var(--u) * .6);
        margin-bottom: calc(var(--u) * .6);
        border-radius: 2px;
        background: #22c55e;
    }

        .nv-terminal-screen i:last-child {
            width: 60%;
            background: #3b82f6;
        }

.nv-keys {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--u) * .45);
}

    .nv-keys i {
        height: calc(var(--u) * 1.1);
        border-radius: 2px;
        background: #3b82f6;
    }

/* Industry tiles: frosted glass with a soft blue glow */
.nv-tile {
    left: var(--x);
    top: var(--y);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--u) * 1);
    width: calc(var(--u) * 16);
    height: calc(var(--u) * 12.5);
    --u: min(1cqw, 1.55cqh);
    border-radius: calc(var(--u) * 1.6);
    background: linear-gradient(180deg, rgba(59, 130, 246, .42) 0%, rgba(29, 78, 216, .32) 100%);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .6), inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 calc(var(--u) * 2.4) rgba(var(--nv-cyan-rgb), .45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    text-align: center;
}

    .nv-tile i {
        font-size: calc(var(--u) * 4);
        color: #fff;
        filter: drop-shadow(0 0 calc(var(--u) * .8) rgba(186, 230, 253, .7));
    }

    .nv-tile span {
        max-width: 100%;
        padding: 0 calc(var(--u) * .6);
        font-size: max(10.5px, calc(var(--u) * 2.15));
        font-weight: 600;
        line-height: 1.15;
        color: #fff;
    }

/* Feature row */
.nv-features {
    display: flex;
    align-items: center;
    gap: clamp(.9rem, 2vw, 1.75rem);
}

    .nv-features > div {
        display: flex;
        align-items: center;
        gap: .7rem;
        max-width: 11rem;
        font-size: clamp(.78rem, .95vw, .95rem);
        line-height: 1.2;
        color: rgba(255, 255, 255, .92);
    }

        .nv-features > div + div {
            padding-left: clamp(.9rem, 2vw, 1.75rem);
            border-left: 1px solid rgba(255, 255, 255, .28);
        }

    .nv-features i {
        font-size: 1.7rem;
        color: #fff;
    }

/* =====================================================================
   RIGHT: authentication
   ===================================================================== */

.nv-auth {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(1.25rem, 3vh, 2.25rem) clamp(1.5rem, 4.5vw, 4.5rem);
    background: var(--nv-surface);
}

/* Soft blue arcs top right, dot field bottom right */
.nv-auth-glow {
    position: absolute;
    z-index: -1;
    top: -15rem;
    right: -15rem;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    border: 2rem solid var(--nv-decor);
    box-shadow: 0 0 0 2.6rem rgba(59, 130, 246, .05);
    pointer-events: none;
}

.nv-auth-dots {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    width: 13rem;
    height: 9rem;
    background-image: radial-gradient(rgba(59, 130, 246, .45) 2.6px, transparent 3px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse at 100% 100%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 100% 100%, #000 0%, transparent 70%);
    pointer-events: none;
}

.nv-theme {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    padding: 0;
    border: 1px solid var(--nv-border);
    border-radius: 10px;
    background: var(--nv-surface);
    color: var(--nv-muted);
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}

    .nv-theme:hover {
        color: var(--nv-p);
        border-color: rgba(var(--nv-p-rgb), .45);
    }

    .nv-theme:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 4px rgba(var(--nv-p-rgb), .2);
    }

.nv-theme-light {
    display: none;
}

html[data-theme="dark"] .nv-theme-light {
    display: inline;
    color: #fbbf24;
}

html[data-theme="dark"] .nv-theme-dark {
    display: none;
}

.nv-auth-body {
    width: 100%;
    max-width: 34rem;
    margin: auto;
    padding: 1rem 0;
}

/* Product brand (Web.config: LoginProductName / LoginProductLogo / LoginProductTagline) */
.nv-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(1.25rem, 4.5vh, 2.75rem);
    text-align: center;
}

.nv-product-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 100%;
}

.nv-product-mark {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

    /* Logo keeps its own aspect ratio */
    .nv-product-mark .nv-logo-img {
        display: block;
        width: auto;
        height: auto;
        max-width: 200px;
        max-height: 3.6rem;
        object-fit: contain;
    }

.nv-nmark {
    display: block;
    width: clamp(3.2rem, 5vw, 4.4rem);
    height: auto;
}

.nv-product-name {
    min-width: 0;
    padding-bottom: .25rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: clamp(1.8rem, 2.9vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--nv-heading);
    border-bottom: 2px solid rgba(var(--nv-p-rgb), .85);
}

.nv-product-tag {
    margin-top: .55rem;
    font-size: clamp(.9rem, 1.1vw, 1.1rem);
    font-style: italic;
    color: var(--nv-label);
}

.nv-title {
    margin: 0 0 .5rem;
    font-size: clamp(2.2rem, 3.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    text-align: center;
    color: var(--nv-heading);
}

.nv-sub {
    margin: 0 0 clamp(1.25rem, 4vh, 2.25rem);
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    text-align: center;
    color: var(--nv-label);
}

/* Fields: icon, divider, value */
.nv-field {
    margin-bottom: 1.1rem;
}

.nv-field-label {
    display: block;
    margin-bottom: .45rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--nv-label);
}

.nv-input {
    position: relative;
    flex: 1 1 auto;
}

    .nv-input::before {
        content: "";
        position: absolute;
        z-index: 2;
        left: 3.4rem;
        top: 28%;
        bottom: 28%;
        width: 1px;
        background: var(--nv-border);
    }

.nv-input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: var(--nv-icon);
    pointer-events: none;
    transition: color .15s ease;
}

.nv-login .nv-input .form-control {
    height: 3.75rem;
    padding: 0 1rem 0 4.3rem;
    border: 1.5px solid var(--nv-border);
    border-radius: 10px;
    font-size: 1.08rem;
    color: var(--nv-text);
    background: var(--nv-field);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .nv-login .nv-input .form-control::placeholder {
        color: #7c8aa5;
    }

    .nv-login .nv-input .form-control:hover {
        border-color: var(--nv-border-hover);
    }

    .nv-login .nv-input .form-control:focus {
        border-color: var(--nv-p);
        box-shadow: 0 0 0 4px rgba(var(--nv-p-rgb), .13);
    }

    .nv-login .nv-input .form-control:-webkit-autofill {
        -webkit-text-fill-color: var(--nv-text);
        -webkit-box-shadow: 0 0 0 40px var(--nv-field) inset;
        caret-color: var(--nv-text);
    }

.nv-input:focus-within .nv-input-icon {
    color: var(--nv-p);
}

.nv-login #Password {
    padding-right: 3.8rem;
}

/* Password visibility */
.nv-eye {
    position: absolute;
    right: .55rem;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--nv-icon);
    background: transparent;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

    .nv-eye:hover,
    .nv-eye[aria-pressed="true"] {
        color: var(--nv-p);
        background: rgba(var(--nv-p-rgb), .08);
    }

    .nv-eye:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 3px rgba(var(--nv-p-rgb), .25);
    }

.nv-caps {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .5rem;
    padding: .22rem .65rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    color: #b45309;
    background: rgba(217, 119, 6, .12);
}

html[data-theme="dark"] .nv-caps {
    color: #fbbf24;
}

/* Picture challenge */
.nv-captcha {
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .nv-captcha img {
        flex: 0 0 auto;
        height: 3.75rem;
        width: auto;
        border-radius: 10px;
        border: 1.5px solid var(--nv-border);
        cursor: pointer;
    }

/* Remember me + forgot password */
.nv-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .2rem 0 1.4rem;
}

.nv-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--nv-label);
    cursor: pointer;
    user-select: none;
}

    .nv-check input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
    }

.nv-check-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 2px solid var(--nv-p);
    border-radius: 5px;
    font-size: .7rem;
    color: transparent;
    background: var(--nv-field);
    transition: background-color .15s ease, color .15s ease;
}

.nv-check input:checked + .nv-check-box {
    color: #fff;
    background: var(--nv-p);
}

.nv-check input:focus-visible + .nv-check-box {
    box-shadow: 0 0 0 4px rgba(var(--nv-p-rgb), .2);
}

.nv-forgot {
    padding: 0;
    border: 0;
    background: none;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--nv-p);
    cursor: pointer;
}

    .nv-forgot:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .nv-forgot:focus-visible {
        outline: 0;
        border-radius: 4px;
        box-shadow: 0 0 0 3px rgba(var(--nv-p-rgb), .25);
    }

html[data-theme="dark"] .nv-forgot,
html[data-theme="dark"] .nv-alt a {
    color: var(--nv-p-light);
}

.nv-forgot-note {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: -.5rem 0 1.3rem;
    padding: .75rem .9rem;
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--nv-label);
    background: rgba(var(--nv-p-rgb), .07);
    box-shadow: inset 0 0 0 1px rgba(var(--nv-p-rgb), .16);
}

    .nv-forgot-note i {
        margin-top: .15rem;
        color: var(--nv-p);
    }

/* Primary action */
.nv-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    height: 3.75rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--nv-p-light) 0%, var(--nv-p) 45%, var(--nv-p-dark) 100%);
    box-shadow: 0 12px 24px -14px rgba(var(--nv-p-rgb), .95);
    cursor: pointer;
    transition: filter .15s ease, box-shadow .15s ease;
}

    .nv-submit:hover {
        filter: brightness(1.07);
        box-shadow: 0 14px 28px -12px rgba(var(--nv-p-rgb), 1);
    }

    .nv-submit:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 4px rgba(var(--nv-p-rgb), .3);
    }

    .nv-submit:disabled {
        opacity: .85;
        cursor: progress;
    }

.nv-or {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin: 1.4rem 2.5rem .9rem;
    font-size: 1.05rem;
    color: var(--nv-label);
}

    .nv-or::before,
    .nv-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--nv-border);
    }

.nv-alt {
    display: flex;
    justify-content: center;
    gap: .4rem;
    font-size: .98rem;
    color: var(--nv-muted);
}

    .nv-alt a {
        font-weight: 700;
        color: var(--nv-p);
    }

.nv-copy {
    margin-top: clamp(1.25rem, 3.5vh, 2rem);
    font-size: .9rem;
    text-align: center;
    color: var(--nv-label);
}

/* =====================================================================
   Responsive
   ===================================================================== */

/* Short laptop screens: smaller headline, no feature row */
@media (max-height: 760px) and (min-width: 992px) {
    .nv-headline {
        font-size: clamp(2rem, 3.4vw, 3rem);
    }

    .nv-company-name {
        font-size: 1.6rem;
    }

    .nv-features {
        display: none;
    }

    .nv-product-name {
        font-size: 2rem;
    }

    .nv-title {
        font-size: 2.5rem;
    }

    .nv-login .nv-input .form-control,
    .nv-submit {
        height: 3.3rem;
    }
}

/* Too short for the illustration */
@media (max-height: 560px) and (min-width: 992px) {
    .nv-eco {
        display: none;
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .nv-features > div {
        font-size: .76rem;
    }

    .nv-features i {
        font-size: 1.35rem;
    }
}

/* Tablet and phone: brand becomes a top banner, form follows */
@media (max-width: 991.98px) {
    .nv-login {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        overflow-x: hidden;
    }

    .nv-brand {
        min-height: 0;
        padding: 1.5rem 1.5rem 4rem;
        gap: 1rem;
    }

    .nv-curve,
    .nv-features,
    .nv-eco {
        display: none;
    }

    .nv-skyline {
        bottom: 0;
        height: 80%;
    }

    .nv-headline {
        font-size: clamp(2rem, 6.5vw, 3rem);
    }

    .nv-auth {
        flex: 1 0 auto;
        min-height: 0;
        overflow: hidden;
        margin-top: -2rem;
        padding: 1.5rem 1.5rem 1.75rem;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -18px 40px -24px rgba(2, 6, 23, .5);
    }

    .nv-auth-body {
        max-width: 30rem;
        padding: 1rem 0 .5rem;
    }
}

/* Tall tablet: room for the ecosystem inside the banner */
@media (min-width: 640px) and (max-width: 991.98px) and (min-height: 1000px) {
    .nv-eco {
        display: block;
        position: relative;
        flex: 0 0 auto;
        height: 17rem;
        max-width: 32rem;
    }
}

@media (max-width: 575.98px) {
    .nv-brand {
        padding: 1.1rem 1.1rem 3.5rem;
    }

    .nv-company-mark {
        width: 2.6rem;
    }

    .nv-company-name {
        font-size: 1.35rem;
    }

    .nv-company-tag {
        font-size: .76rem;
    }

    .nv-hero-bar {
        margin: .55rem 0;
    }

    .nv-lead {
        font-size: .95rem;
    }

    .nv-auth {
        padding: 1.25rem 1.1rem 1.5rem;
        border-radius: 20px 20px 0 0;
    }

    .nv-nmark {
        width: 2.8rem;
    }

    .nv-product-name {
        font-size: 1.6rem;
    }

    .nv-product-tag {
        font-size: .85rem;
    }

    .nv-title {
        font-size: 2rem;
    }

    .nv-sub {
        font-size: .98rem;
    }

    .nv-login .nv-input .form-control,
    .nv-submit {
        height: 3.3rem;
        font-size: 1rem;
    }

    .nv-submit {
        font-size: 1.1rem;
    }

    .nv-check,
    .nv-forgot {
        font-size: .92rem;
    }

    .nv-captcha {
        flex-wrap: wrap;
    }

        .nv-captcha .nv-input {
            flex-basis: 100%;
        }
}
