/* Login/auth humanization: deliberate business software UI, no decorative gradient/card template. */
body.nx-login-page {
    --auth-ink: #17212b;
    --auth-muted: #667085;
    --auth-line: #e3e7ec;
    --auth-soft: #f6f8fa;
    --auth-blue: #1d4ed8;
    --auth-blue-dark: #1e40af;
    --auth-navy: #102a43;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: #fff;
    color: var(--auth-ink);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.nx-login-page .pace,
.nx-login-page .scrolltop {
    display: none !important;
}

.nx-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, .88fr) minmax(520px, 1.12fr);
    background: #fff;
}

.nx-auth-context {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 34px 44px 30px;
    overflow: hidden;
    background: var(--auth-navy);
    color: #fff;
}

.nx-auth-context::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -170px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    box-shadow: 0 0 0 58px rgba(255,255,255,.018), 0 0 0 116px rgba(255,255,255,.012);
    pointer-events: none;
}

.nx-auth-brand-row,
.nx-auth-context-copy,
.nx-auth-capabilities,
.nx-auth-context-foot {
    position: relative;
    z-index: 1;
}

.nx-auth-brand {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none !important;
}

.nx-auth-brand:hover,
.nx-auth-brand:focus {
    color: #fff;
    text-decoration: none !important;
}

.nx-auth-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
}

.nx-auth-brand-mark img {
    display: block;
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

.nx-auth-brand-copy {
    display: block;
    min-width: 0;
}

.nx-auth-brand-copy strong {
    display: block;
    max-width: 250px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nx-auth-brand-copy small {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,.55);
    font-size: 10.5px;
    font-weight: 450;
    letter-spacing: .02em;
}

.nx-auth-context-copy {
    margin-top: auto;
    padding-top: 70px;
}

.nx-auth-kicker {
    display: block;
    color: #a7c7e7;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nx-auth-context-copy h1 {
    max-width: 560px;
    margin: 13px 0 15px;
    color: #fff;
    font-size: clamp(34px, 3.3vw, 50px);
    line-height: 1.05;
    font-weight: 690;
    letter-spacing: -.045em;
}

.nx-auth-context-copy p {
    max-width: 590px;
    margin: 0;
    color: rgba(255,255,255,.65);
    font-size: 14px;
    line-height: 1.7;
}

.nx-auth-capabilities {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,.12);
}

.nx-auth-capabilities > div {
    min-width: 0;
    padding: 20px 18px 18px 0;
    border-right: 1px solid rgba(255,255,255,.1);
}

.nx-auth-capabilities > div + div {
    padding-left: 18px;
}

.nx-auth-capabilities > div:last-child {
    border-right: 0;
}

.nx-auth-capabilities span {
    display: block;
    color: rgba(255,255,255,.38);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
}

.nx-auth-capabilities strong {
    display: block;
    margin-top: 12px;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
}

.nx-auth-capabilities small {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.5);
    font-size: 10.5px;
    line-height: 1.5;
}

.nx-auth-context-foot {
    margin: auto 0 0;
    padding-top: 44px;
    color: rgba(255,255,255,.42);
    font-size: 10.5px;
}

.nx-auth-main {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.nx-auth-topbar {
    min-height: 72px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid #f0f2f5;
}

.nx-auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 9px;
    color: var(--auth-ink);
    text-decoration: none !important;
}

.nx-auth-mobile-brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.nx-auth-mobile-brand span {
    font-size: 13px;
    font-weight: 650;
}

.nx-auth-language .btn,
.nx-auth-language button,
.nx-auth-language a {
    box-shadow: none !important;
}

.nx-auth-form-stage {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    padding: 48px 56px;
}

.nx-login-panel {
    width: min(100%, 430px);
}

.nx-login-heading {
    margin-bottom: 30px;
}

.nx-login-eyebrow {
    display: block;
    color: var(--auth-blue);
    font-size: 10.5px;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nx-login-heading h2 {
    margin: 8px 0 7px;
    color: var(--auth-ink);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 690;
    letter-spacing: -.035em;
}

.nx-login-heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.55;
}

.nx-field {
    margin-bottom: 18px;
}

.nx-field label {
    margin: 0 0 6px;
    color: #344054;
    font-size: 12.5px;
    font-weight: 620;
}

.nx-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.nx-forgot {
    color: var(--auth-blue);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none !important;
}

.nx-forgot:hover {
    color: var(--auth-blue-dark);
    text-decoration: underline !important;
}

.nx-input-wrap {
    position: relative;
}

.nx-input-wrap input {
    width: 100%;
    height: 44px;
    padding: 9px 42px 9px 39px;
    border: 1px solid #cfd6df;
    border-radius: 7px;
    outline: 0;
    background: #fff;
    color: var(--auth-ink);
    font-size: 13px;
    line-height: 1.3;
    box-shadow: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}

.nx-input-wrap input::placeholder {
    color: #98a2b3;
}

.nx-input-wrap input:focus {
    border-color: #84adff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.nx-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 13px;
    pointer-events: none;
}

.nx-password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #667085;
    font-size: 13px;
}

.nx-password-toggle:hover {
    background: #f5f7f9;
    color: #344054;
}

.nx-password-toggle:focus-visible {
    outline: 3px solid rgba(37,99,235,.14);
    outline-offset: 1px;
}

.nx-field.has-error .nx-input-wrap input {
    border-color: #f04438;
}

.nx-field-error {
    display: block;
    margin-top: 5px;
    color: #b42318;
    font-size: 11.5px;
    line-height: 1.4;
}

.nx-login-options {
    margin: -2px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.nx-remember {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475467;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
}

.nx-remember input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--auth-blue);
}

.nx-secure-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667085;
    font-size: 10.5px;
    white-space: nowrap;
}

.nx-secure-note i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #12b76a;
}

.nx-recaptcha-wrap {
    margin-bottom: 16px;
    overflow-x: auto;
}

.nx-login-button {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--auth-blue);
    border-radius: 7px;
    background: var(--auth-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    box-shadow: none;
    transition: background-color .12s ease, border-color .12s ease;
}

.nx-login-button:hover,
.nx-login-button:focus {
    border-color: var(--auth-blue-dark);
    background: var(--auth-blue-dark);
    color: #fff;
}

.nx-login-button:focus-visible {
    outline: 3px solid rgba(37,99,235,.16);
    outline-offset: 2px;
}

.nx-register-line {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--auth-line);
    color: var(--auth-muted);
    font-size: 11.5px;
    text-align: center;
}

.nx-register-line a {
    color: var(--auth-blue);
    font-weight: 650;
    text-decoration: none;
}

.nx-register-line a:hover {
    text-decoration: underline;
}

.nx-auth-footer {
    min-height: 58px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #f0f2f5;
    color: #98a2b3;
    font-size: 10.5px;
}

/* Remove legacy auth background/spacing inherited from the old template. */
.nx-login-page > .container-fluid,
.nx-login-page > .row,
.nx-login-page .right-col {
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

@media (max-width: 1050px) {
    .nx-auth-shell {
        grid-template-columns: minmax(330px, .78fr) minmax(460px, 1.22fr);
    }

    .nx-auth-context {
        padding: 30px 30px 26px;
    }

    .nx-auth-context-copy h1 {
        font-size: 36px;
    }

    .nx-auth-capabilities {
        grid-template-columns: 1fr;
    }

    .nx-auth-capabilities > div,
    .nx-auth-capabilities > div + div {
        padding: 13px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.09);
    }

    .nx-auth-capabilities > div:last-child {
        border-bottom: 0;
    }

    .nx-auth-capabilities span,
    .nx-auth-capabilities small {
        display: none;
    }

    .nx-auth-capabilities strong {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    body.nx-login-page {
        background: #fff;
    }

    .nx-auth-shell {
        display: block;
        min-height: 100vh;
    }

    .nx-auth-context {
        display: none;
    }

    .nx-auth-main {
        min-height: 100vh;
    }

    .nx-auth-topbar {
        min-height: 64px;
        padding: 15px 16px;
        justify-content: space-between;
    }

    .nx-auth-mobile-brand {
        display: inline-flex;
        max-width: 60vw;
    }

    .nx-auth-mobile-brand span {
        max-width: 48vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nx-auth-form-stage {
        place-items: start center;
        padding: 48px 20px 36px;
    }

    .nx-login-panel {
        width: min(100%, 420px);
    }

    .nx-login-heading {
        margin-bottom: 26px;
    }

    .nx-login-heading h2 {
        font-size: 27px;
    }

    .nx-auth-footer {
        min-height: 54px;
        padding: 14px 16px;
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .nx-auth-form-stage {
        padding: 38px 15px 28px;
    }

    .nx-label-row {
        align-items: flex-start;
    }

    .nx-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .nx-auth-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-login-page *,
    .nx-login-page *::before,
    .nx-login-page *::after {
        transition: none !important;
        animation: none !important;
    }
}

.nx-auth-brand-letter,
.nx-auth-mobile-letter {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
}
.nx-auth-mobile-letter {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 7px;
    background: #102a43;
    font-size: 13px;
}
