:root {
    --nser-deep: #073e35;
    --nser-deeper: #042f29;
    --nser-green: #0a715e;
    --nser-green-2: #0d8b70;
    --nser-mint: #dff4ec;
    --nser-text: #15231f;
    --nser-muted: #687671;
    --nser-border: #dce5e2;
    --nser-bg: #f3f7f5;
    --danger: #a93636;
    --danger-bg: #fff1f1;
    --warn: #86610b;
    --warn-bg: #fff8df;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body.nser-login-page {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: var(--nser-text);
    background: var(--nser-bg);
    -webkit-font-smoothing: antialiased;
}

.nser-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(460px, 1.08fr) minmax(470px, .92fr);
}

.nser-welcome-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 72px);
    background:
        radial-gradient(circle at 85% 15%, rgba(91, 207, 164, .24), transparent 30%),
        radial-gradient(circle at 7% 90%, rgba(255,255,255,.10), transparent 30%),
        linear-gradient(145deg, #0a5a4b 0%, var(--nser-deep) 48%, var(--nser-deeper) 100%);
    color: #fff;
}

.nser-welcome-panel::before,
.nser-welcome-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    pointer-events: none;
}

.nser-welcome-panel::before {
    width: 540px;
    height: 540px;
    right: -250px;
    bottom: -220px;
}

.nser-welcome-panel::after {
    width: 360px;
    height: 360px;
    right: -150px;
    bottom: -130px;
}

.welcome-content {
    min-height: calc(100vh - clamp(68px, 10vw, 144px));
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.brand-lockup {
    display: flex;
    gap: 17px;
    align-items: center;
}

.logo-frame {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 14px 35px rgba(0,0,0,.18);
}

.nser-login-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-kicker,
.signin-kicker,
.eyebrow {
    font-size: 11px;
    letter-spacing: .17em;
    font-weight: 700;
}

.brand-kicker { color: #a8d9c9; }

.brand-copy h1 {
    margin: 0;
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 650;
    letter-spacing: -.02em;
}

.welcome-message {
    max-width: 630px;
    margin: auto 0 34px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: #a9dfcc;
}

.welcome-message h2 {
    max-width: 590px;
    margin: 0 0 19px;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.06;
    letter-spacing: -.045em;
    font-weight: 650;
}

.welcome-message p {
    max-width: 610px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 16px;
    line-height: 1.75;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 11px;
    margin-bottom: 42px;
}

.feature-item {
    min-height: 125px;
    padding: 17px 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(5px);
}

.feature-icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 8px;
    background: rgba(152, 228, 199, .17);
    color: #abebd3;
    font-size: 13px;
    font-weight: 800;
}

.feature-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.feature-item small {
    display: block;
    color: rgba(255,255,255,.62);
    font-size: 11.5px;
    line-height: 1.5;
}

.welcome-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.58);
    font-size: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #73ddb4;
    box-shadow: 0 0 0 5px rgba(115,221,180,.09);
}

.nser-signin-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 44px clamp(28px, 5vw, 82px);
    background:
        radial-gradient(circle at top right, rgba(19, 142, 113, .055), transparent 28%),
        #f8faf9;
}

.signin-wrap {
    width: min(100%, 455px);
}

.mobile-brand { display: none; }

.signin-heading {
    margin-bottom: 31px;
}

.signin-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--nser-green);
}

.signin-heading h2 {
    margin: 0 0 9px;
    color: #16221f;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -.035em;
    font-weight: 660;
}

.signin-heading p {
    margin: 0;
    color: var(--nser-muted);
    font-size: 14.5px;
}

.signin-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: #293733;
    font-size: 13px;
    font-weight: 650;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #7a8984;
    pointer-events: none;
}

.input-icon svg,
.password-toggle svg,
.signin-button svg,
.security-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.signin-form input[type="text"],
.signin-form input[type="password"],
.signin-form select {
    width: 100%;
    height: 51px;
    border: 1px solid var(--nser-border);
    border-radius: 12px;
    outline: 0;
    background: #fff;
    color: #192824;
    font: inherit;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.signin-form input[type="text"],
.signin-form input[type="password"] {
    padding: 0 48px 0 46px;
}

.signin-form select {
    padding: 0 42px 0 46px;
    appearance: none;
    cursor: pointer;
}

.select-wrap::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid #687671;
    border-bottom: 1.6px solid #687671;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.signin-form input:focus,
.signin-form select:focus {
    border-color: #3aa286;
    box-shadow: 0 0 0 4px rgba(14,124,97,.09);
    background: #fff;
}

.signin-form input::placeholder {
    color: #a1aaa7;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    color: #6f7f7a;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover {
    background: #f0f5f3;
    color: var(--nser-green);
}

.password-toggle svg {
    width: 19px;
    height: 19px;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: #8a9692;
    font-size: 11.5px;
}

.signin-button {
    width: 100%;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--nser-green), #075c4d);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 680;
    box-shadow: 0 14px 28px rgba(6, 93, 75, .18);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.signin-button svg {
    width: 19px;
    height: 19px;
}

.signin-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 17px 32px rgba(6,93,75,.23);
    filter: brightness(1.025);
}

.signin-button:active {
    transform: translateY(0);
}

.security-note {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    padding: 15px 16px;
    border: 1px solid #e0e9e5;
    border-radius: 13px;
    background: #f3f7f5;
}

.security-icon {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    padding: 6px;
    border-radius: 9px;
    color: var(--nser-green);
    background: #dff1eb;
}

.security-note strong {
    display: block;
    margin: 0 0 4px;
    color: #30423d;
    font-size: 12px;
}

.security-note p {
    margin: 0;
    color: #798681;
    font-size: 11.5px;
    line-height: 1.48;
}

.signin-footer {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 26px;
    color: #9aa4a1;
    font-size: 11.5px;
}

.footer-separator { color: #c6cecb; }

.login-alert {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 13px 14px;
    border-radius: 11px;
    font-size: 12px;
}

.login-alert > span {
    flex: 0 0 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
}

.alert-error {
    color: #7f2b2b;
    border: 1px solid #f1c9c9;
    background: var(--danger-bg);
}

.alert-error > span {
    color: #fff;
    background: #bc4747;
}

.alert-warning {
    color: #72520d;
    border: 1px solid #ead99e;
    background: var(--warn-bg);
}

.alert-warning > span {
    color: #fff;
    background: #a77a14;
}

.login-alert strong {
    display: block;
    margin-bottom: 3px;
}

.login-alert p { margin: 0; }

.legacy-message h3,
.legacy-message font {
    margin: 0 !important;
    color: inherit !important;
    font: inherit !important;
    font-weight: 600 !important;
}

@media (max-width: 1050px) {
    .nser-login-shell {
        grid-template-columns: minmax(390px, .9fr) minmax(430px, 1.1fr);
    }

    .welcome-features {
        grid-template-columns: 1fr;
    }

    .feature-item {
        min-height: 0;
        display: flex;
        gap: 11px;
    }

    .feature-icon { flex: 0 0 25px; }
}

@media (max-width: 820px) {
    body.nser-login-page { overflow: auto; }

    .nser-login-shell {
        display: block;
        min-height: 100vh;
    }

    .nser-welcome-panel { display: none; }

    .nser-signin-panel {
        min-height: 100vh;
        padding: 30px 22px;
    }

    .signin-wrap {
        width: min(100%, 470px);
    }

    .mobile-brand {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-bottom: 55px;
    }

    .mobile-brand img {
        width: 52px;
        height: 52px;
        padding: 5px;
        object-fit: contain;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(5,60,50,.12);
    }

    .mobile-brand strong {
        display: block;
        color: #18342d;
        font-size: 15px;
    }

    .mobile-brand span {
        display: block;
        margin-top: 3px;
        color: #7c8985;
        font-size: 10.5px;
        letter-spacing: .06em;
        text-transform: uppercase;
    }
}

@media (max-width: 460px) {
    .nser-signin-panel { padding: 22px 17px 28px; }
    .mobile-brand { margin-bottom: 38px; }
    .signin-heading h2 { font-size: 29px; }
    .signin-heading { margin-bottom: 26px; }
}
