/* Scoped overrides retain the legacy template's global !important rules elsewhere. */
.npn-auth {
    --auth-ink: #000;
    --auth-muted: #000;
    --auth-primary: #1859c9;
    --auth-border: #dce3ee;
    --primary: #1859c9;
    --primary-hover: #1249a8;
    --text-10: #000;
    min-height: 100svh;
    padding: 32px;
    background: #edf2f8;
    color: var(--auth-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
.npn-auth *, .npn-auth *::before, .npn-auth *::after { box-sizing: border-box; }
.npn-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 1180px;
    min-height: calc(100svh - 64px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e3e9f1;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 64px #192d4d0c;
}
.npn-auth-story {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 42px 48px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 95% 90%, #144883 0, transparent 60%), #101f39;
}
.npn-auth-brand { display: inline-flex; align-items: center; gap: 14px; width: fit-content; color: #fff !important; font-size: 26px; font-weight: 700; letter-spacing: -1px; }
.npn-auth-brand:hover { color: #b9dfff !important; }
.npn-auth-brand > img { padding: 6px; border-radius: 12px; background: #fff; object-fit: contain; }
.npn-brand-caption { display: block; margin-top: -3px; font-size: 8px; font-weight: 500; letter-spacing: 1.6px; }
.npn-story-content { margin: auto 0; padding: 64px 0 36px; }
.npn-auth-eyebrow { display: flex; align-items: center; gap: 9px; color: #b5d4f4; font-size: 10px; font-weight: 600; letter-spacing: 1.7px; }
.npn-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #73d9c2; box-shadow: 0 0 0 4px #73d9c215; }
.npn-auth-story h2 { margin: 24px 0 20px; color: #fff !important; font-size: clamp(32px, 3.7vw, 48px); font-weight: 600; line-height: 1.18; letter-spacing: -2px; }
.npn-auth-story h2 span { color: #83c4ff; }
.npn-story-content > p { max-width: 350px; margin: 0; color: #fff !important; font-size: 14px; line-height: 1.9; }
.npn-network { position: relative; height: 250px; max-width: 360px; margin: 26px auto 0; }
.npn-orbit { position: absolute; top: 50%; left: 50%; border: 1px solid #b3d8ff26; border-radius: 50%; transform: translate(-50%, -50%) rotate(-25deg); }
.npn-orbit--outer { width: 320px; height: 190px; }
.npn-orbit--inner { width: 240px; height: 240px; border-style: dashed; border-color: #b3d8ff20; }
.npn-network-core { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 100px; height: 100px; transform: translate(-50%, -50%); border: 1px solid #719fd958; border-radius: 28px; background: linear-gradient(135deg, #f7fbff, #d6e9ff); box-shadow: 0 0 65px #398cff28; }
.npn-network-node { position: absolute; width: 13px; height: 13px; border: 3px solid #cdeaff; border-radius: 50%; background: #4898db; box-shadow: 0 0 0 7px #cdeaff0b; }
.npn-network-node--one { top: 37px; left: 78px; }
.npn-network-node--two { top: 118px; right: 20px; }
.npn-network-node--three { bottom: 32px; left: 74px; background: #6bd9bf; }
.npn-network-label { position: absolute; bottom: 0; left: 50%; width: max-content; transform: translateX(-50%); color: #fff; font-size: 10px; letter-spacing: 1.4px; }
.npn-story-footer { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 11px; }
.npn-footer-line { width: 25px; height: 1px; background: #78b7f0; }
.npn-auth-panel { display: flex; flex-direction: column; min-width: 0; padding: 40px 52px 28px; }
.npn-auth-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--auth-muted); font-size: 9px; font-weight: 600; letter-spacing: 1.4px; }
.npn-language { letter-spacing: 0; font-weight: 500; }
.npn-auth-content { width: 100%; max-width: 390px; margin: auto; padding: 64px 0; }
.npn-auth-kicker { color: var(--auth-primary); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.npn-auth-heading h1 { margin: 12px 0; color: var(--auth-ink); font-size: 32px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.25; }
.npn-auth-heading p { margin: 0 0 30px; color: var(--auth-muted) !important; font-size: 13px; }
.npn-auth .form-group, .npn-auth .mb-3 { margin-bottom: 20px !important; }
.npn-auth label { margin-bottom: 8px; color: var(--auth-ink); font-size: 12px; font-weight: 600; }
.npn-auth .form-control, .npn-auth .form-select {
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fbfcfe;
    color: var(--auth-ink);
    font-size: 13px;
    box-shadow: none;
}
.npn-auth textarea.form-control { min-height: 110px; resize: vertical; }
.npn-auth .form-control::placeholder { color: var(--auth-muted); opacity: 1; }
.npn-auth .form-control:focus, .npn-auth .form-select:focus { border-color: var(--auth-primary); background: #fff; box-shadow: 0 0 0 3px #1859c91a; }
.npn-auth .form-control.is-invalid, .npn-auth .has-error .form-control { border-color: #bd293c; }
.npn-auth .invalid-feedback, .npn-auth .help-block { color: #b52137; font-size: 12px; }
.npn-auth .btn { min-height: 48px; padding: 12px 20px; border-radius: 10px !important; font-size: 13px !important; font-weight: 600; }
.npn-auth .btn-primary { border-color: var(--auth-primary); background: var(--auth-primary); color: #fff; box-shadow: 0 5px 14px #1859c91c; }
.npn-auth .btn-primary:hover { border-color: #1249a8; background: #1249a8; }
.npn-auth .btn-outline-primary { border-color: var(--auth-border) !important; background: #fff; color: var(--auth-primary) !important; }
.npn-auth a:not(.npn-auth-brand):not(.btn):not(.npn-auth-skip) { color: var(--auth-primary) !important; font-weight: 600; }
.npn-auth a:hover { text-decoration: underline; }
.npn-auth a:focus-visible, .npn-auth button:focus-visible { outline: 3px solid #2581eb; outline-offset: 4px; }
.npn-auth-recovery { margin: -6px 0 24px; text-align: right; font-size: 12px; }
.npn-auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--auth-muted); font-size: 11px; }
.npn-auth-divider::before, .npn-auth-divider::after { content: ""; flex: 1; height: 1px; background: #e4e9f1; }
.npn-auth-footnote { margin: 24px 0 0; text-align: center; color: var(--auth-muted) !important; font-size: 11px; line-height: 1.8; }
.npn-auth-footer { color: var(--auth-muted); text-align: center; font-size: 10px; }
.npn-auth-skip { position: absolute; top: 8px; left: 12px; z-index: 10000; padding: 8px 12px; transform: translateY(-160%); background: #fff; color: #14243b; }
.npn-auth-skip:focus { transform: none; }
.npn-auth--wide .npn-auth-shell { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.npn-auth--wide .npn-auth-story { align-self: start; position: sticky; top: 0; min-height: calc(100svh - 64px); }
.npn-auth--wide .npn-auth-content { max-width: 540px; padding: 40px 0; }
.npn-auth .npn-form-section { margin-bottom: 28px; padding: 24px; border: 1px solid #e3e9f1; border-radius: 14px; background: #fff; }
.npn-form-section h2 { margin: 0 0 22px; color: var(--auth-ink); font-size: 14px; font-weight: 600; }
.npn-section-number { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 8px; background: #edf4ff; color: #1859c9; font-size: 11px; }
.npn-auth .npn-form-section > .form-group:last-child { margin-bottom: 0 !important; }
.npn-auth .select2-container { max-width: 100%; }
.npn-auth .select2-hidden-accessible { min-height: 0; padding: 0; }
.npn-auth .select2-container--krajee-bs5 .select2-selection--single { min-height: 48px; padding: 12px 14px; border-color: var(--auth-border); border-radius: 10px; background: #fbfcfe; font-size: 13px; }
.npn-auth .select2-selection__rendered, .npn-auth .select2-selection__placeholder, .npn-auth .form-text { color: var(--auth-ink) !important; }
.npn-auth .select2-container--krajee-bs5 .select2-selection--single .select2-selection__arrow { height: 46px; }
.npn-auth .select2-container--krajee-bs5.select2-container--focus .select2-selection { border-color: var(--auth-primary); box-shadow: 0 0 0 3px #1859c91a; }
.npn-auth .select2-selection__placeholder { color: var(--auth-muted); }
.npn-auth-message { padding: 22px; margin-bottom: 24px; border: 1px solid #dae6f6; border-radius: 14px; background: #f3f7fd; color: var(--auth-ink); }
.npn-auth-message p:last-child { margin-bottom: 0; }
.npn-auth--embedded { min-height: 0; padding: 12px; background: #fff; }
.npn-auth--embedded .npn-auth-shell { display: block; min-height: 0; border: 0; box-shadow: none; }
.npn-auth--embedded .npn-auth-story, .npn-auth--embedded .npn-auth-topline, .npn-auth--embedded .npn-auth-footer { display: none; }
.npn-auth--embedded .npn-auth-panel { padding: 0; }
@media (max-width: 991px) {
    .npn-auth { padding: 20px; }
    .npn-auth-shell, .npn-auth--wide .npn-auth-shell { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); min-height: calc(100svh - 40px); }
    .npn-auth-story { padding: 32px 26px; }
    .npn-auth-panel { padding: 32px 28px 24px; }
    .npn-network { height: 180px; }
    .npn-orbit--outer { width: 190px; height: 120px; }
    .npn-orbit--inner { width: 170px; height: 170px; }
    .npn-network-node--one { left: 12px; }
    .npn-network-node--three { left: 24px; }
    .npn-auth--wide .npn-auth-story { min-height: calc(100svh - 40px); }
    .npn-brand-caption { font-size: 7px; letter-spacing: .6px; }
}
@media (max-width: 700px) {
    .npn-auth { padding: 0; background: #fff; }
    .npn-auth-shell, .npn-auth--wide .npn-auth-shell { display: flex; flex-direction: column; min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
    .npn-auth-story, .npn-auth--wide .npn-auth-story { position: static; align-self: stretch; min-height: 0; padding: 22px 24px; }
    .npn-auth-brand { font-size: 22px; }
    .npn-story-content, .npn-story-footer { display: none; }
    .npn-auth-panel { flex: 1; padding: 24px; }
    .npn-auth-topline { font-size: 8px; }
    .npn-auth-content, .npn-auth--wide .npn-auth-content { max-width: 480px; padding: 40px 0; }
    .npn-auth-heading h1 { font-size: 30px; }
    .npn-auth .npn-form-section { padding: 20px 16px; }
    .npn-auth--embedded .npn-auth-panel { padding: 0; }
}
@media (min-width: 701px) {
    .npn-auth--wide:not(.npn-auth--embedded) .npn-auth-shell {
        grid-template-rows: minmax(0, 1fr);
        height: calc(100svh - 64px);
        min-height: 0;
    }
    .npn-auth--wide:not(.npn-auth--embedded) .npn-auth-story {
        position: static;
        align-self: stretch;
        min-height: 0;
    }
    .npn-auth--wide:not(.npn-auth--embedded) .npn-auth-panel {
        position: relative;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
    }
    .npn-auth--wide:not(.npn-auth--embedded) .npn-auth-panel > * {
        flex-shrink: 0;
    }
}
@media (min-width: 701px) and (max-width: 991px) {
    .npn-auth--wide:not(.npn-auth--embedded) .npn-auth-shell {
        height: calc(100svh - 40px);
    }
}
