﻿:root {
    --nexus-maroon: #7a0a37;
    --nexus-maroon-dark: #520523;
    --nexus-maroon-light: #a5164e;
    --nexus-charcoal: #1c1f26;
    --nexus-navy: #101827;
    --nexus-surface: #ffffff;
    --nexus-background: #f5f6f8;
    --nexus-border: #dfe3e8;
    --nexus-text: #191c23;
    --nexus-muted: #6d7480;
    --nexus-error: #b42318;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow-x: hidden;
    background: var(--nexus-background);
    color: var(--nexus-text);
    font-family: "Inter", Arial, sans-serif;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

.login-shell {
    display: grid;
    width: 100%;
    min-height: 100vh;
    grid-template-columns: minmax(400px, 44%) 1fr;
}

.login-brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 32px 48px 24px;
    color: #ffffff;
    background: radial-gradient( circle at 16% 14%, rgba(255, 255, 255, 0.09), transparent 26% ), linear-gradient( 145deg, var(--nexus-maroon-light) 0%, var(--nexus-maroon) 48%, var(--nexus-maroon-dark) 100% );
}

    .login-brand-panel::after {
        position: absolute;
        inset: 0;
        content: "";
        pointer-events: none;
        opacity: 0.3;
        background-image: linear-gradient( rgba(255, 255, 255, 0.045) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px );
        background-size: 64px 64px;
    }

.brand-content,
.brand-footer {
    position: relative;
    z-index: 2;
}

.brand-content {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.brand-logo {
    display: block;
    width: min(225px, 62%);
    height: auto;
    object-fit: contain;
}

.brand-message {
    max-width: 560px;
    margin-top: clamp(35px, 7vh, 75px);
}

.brand-eyebrow,
.login-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-eyebrow {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.68);
}

.brand-message h1 {
    margin: 0;
    font-size: clamp(2.35rem, 3.7vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.brand-message p {
    max-width: 520px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    line-height: 1.65;
}

.brand-features {
    display: grid;
    gap: 11px;
    margin-top: 28px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.84rem;
    font-weight: 500;
}

.feature-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
}

    .feature-icon svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

.brand-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.72rem;
}

.brand-footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.brand-orb {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.brand-orb-top {
    top: -200px;
    right: -180px;
    width: 510px;
    height: 510px;
}

.brand-orb-bottom {
    right: -130px;
    bottom: -240px;
    width: 610px;
    height: 610px;
}

.login-form-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 28px 40px 52px;
    background: radial-gradient( circle at 78% 15%, rgba(122, 10, 55, 0.06), transparent 26% ), #f7f8fa;
}

.login-card {
    width: min(100%, 450px);
    padding: 30px 34px;
    border: 1px solid rgba(28, 31, 38, 0.06);
    border-radius: 20px;
    background: var(--nexus-surface);
    box-shadow: 0 22px 55px rgba(16, 24, 39, 0.09), 0 4px 14px rgba(16, 24, 39, 0.04);
}

.login-card-heading {
    margin-bottom: 22px;
}

.login-kicker {
    margin-bottom: 8px;
    color: var(--nexus-maroon);
}

.login-card-heading h2 {
    margin: 0;
    color: var(--nexus-charcoal);
    font-size: 1.75rem;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.login-card-heading p {
    margin: 9px 0 0;
    color: var(--nexus-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 15px;
}

.form-group {
    display: grid;
    gap: 7px;
}

    .form-group label,
    .label-row label {
        color: #343842;
        font-size: 0.8rem;
        font-weight: 600;
    }

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forgot-link {
    color: var(--nexus-maroon);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.input-shell {
    position: relative;
}

    .input-shell input {
        width: 100%;
        height: 46px;
        padding: 0 46px;
        border: 1px solid var(--nexus-border);
        border-radius: 11px;
        outline: none;
        background: #ffffff;
        color: var(--nexus-text);
        font-size: 0.88rem;
        transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    }

        .input-shell input::placeholder {
            color: #a2a7b0;
        }

        .input-shell input:hover {
            border-color: #c9ced6;
        }

        .input-shell input:focus {
            border-color: var(--nexus-maroon);
            box-shadow: 0 0 0 4px rgba(122, 10, 55, 0.09);
        }

        .input-shell input.input-validation-error {
            border-color: var(--nexus-error);
        }

            .input-shell input.input-validation-error:focus {
                box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.09);
            }

.input-icon {
    position: absolute;
    top: 23px;
    left: 15px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #8a909a;
    transform: translateY(-50%);
    pointer-events: none;
}

    .input-icon svg,
    .password-toggle svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.65;
    }

.password-toggle {
    position: absolute;
    top: 23px;
    right: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #8a909a;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

    .password-toggle:hover {
        color: var(--nexus-maroon);
        background: rgba(122, 10, 55, 0.06);
    }

    .password-toggle:focus-visible {
        outline: 2px solid rgba(122, 10, 55, 0.35);
        outline-offset: 2px;
    }

.remember-control {
    position: relative;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    color: #555c68;
    font-size: 0.78rem;
    cursor: pointer;
    user-select: none;
}

    .remember-control input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

.custom-checkbox {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    border: 1px solid #c7cbd2;
    border-radius: 5px;
    background: #ffffff;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

    .custom-checkbox svg {
        width: 12px;
        height: 12px;
        fill: none;
        stroke: #ffffff;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2.4;
        opacity: 0;
    }

.remember-control input:checked + .custom-checkbox {
    border-color: var(--nexus-maroon);
    background: var(--nexus-maroon);
}

    .remember-control input:checked + .custom-checkbox svg {
        opacity: 1;
    }

.remember-control input:focus-visible + .custom-checkbox {
    box-shadow: 0 0 0 4px rgba(122, 10, 55, 0.09);
}

.sign-in-button {
    display: flex;
    width: 100%;
    height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient( 135deg, var(--nexus-maroon-light), var(--nexus-maroon) );
    box-shadow: 0 9px 20px rgba(122, 10, 55, 0.2);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

    .sign-in-button:hover {
        box-shadow: 0 12px 24px rgba(122, 10, 55, 0.25);
        filter: brightness(1.02);
        transform: translateY(-1px);
    }

    .sign-in-button:active {
        box-shadow: 0 7px 16px rgba(122, 10, 55, 0.18);
        transform: translateY(0);
    }

    .sign-in-button:focus-visible {
        outline: 3px solid rgba(122, 10, 55, 0.22);
        outline-offset: 3px;
    }

    .sign-in-button svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

.validation-summary {
    display: none;
    padding: 10px 12px;
    border: 1px solid rgba(180, 35, 24, 0.18);
    border-radius: 10px;
    color: var(--nexus-error);
    background: rgba(180, 35, 24, 0.06);
    font-size: 0.76rem;
    line-height: 1.45;
}

    .validation-summary.validation-summary-errors {
        display: block;
    }

    .validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.field-validation {
    display: block;
    margin-top: 5px;
    color: var(--nexus-error);
    font-size: 0.72rem;
    line-height: 1.35;
}

    .field-validation:empty {
        display: none;
    }

.smart-login-note {
    display: flex;
    gap: 11px;
    margin-top: 20px;
    padding: 12px 13px;
    border: 1px solid rgba(122, 10, 55, 0.09);
    border-radius: 11px;
    background: rgba(122, 10, 55, 0.035);
}

.smart-login-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 9px;
    color: var(--nexus-maroon);
    background: rgba(122, 10, 55, 0.09);
}

    .smart-login-icon svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

.smart-login-note strong {
    display: block;
    margin: 0 0 3px;
    color: #353943;
    font-size: 0.75rem;
}

.smart-login-note p {
    margin: 0;
    color: var(--nexus-muted);
    font-size: 0.69rem;
    line-height: 1.4;
}

.login-page-footer {
    position: absolute;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nexus-muted);
    font-size: 0.7rem;
}

    .login-page-footer a {
        color: inherit;
        text-decoration: none;
    }

        .login-page-footer a:hover {
            color: var(--nexus-maroon);
        }

    .login-page-footer span {
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: #b7bbc2;
    }

.mobile-logo-wrap {
    display: none;
}

@media (max-height: 760px) and (min-width: 821px) {
    .login-brand-panel {
        padding-top: 22px;
        padding-bottom: 18px;
    }

    .brand-logo {
        width: min(195px, 58%);
    }

    .brand-message {
        margin-top: 24px;
    }

    .brand-eyebrow {
        margin-bottom: 10px;
    }

    .brand-message h1 {
        font-size: clamp(2.05rem, 3.1vw, 3.55rem);
    }

    .brand-message p {
        margin-top: 13px;
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .brand-features {
        gap: 8px;
        margin-top: 18px;
    }

    .brand-feature {
        font-size: 0.78rem;
    }

    .feature-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .brand-footer {
        margin-top: 14px;
    }

    .login-form-panel {
        padding-top: 20px;
        padding-bottom: 44px;
    }

    .login-card {
        width: min(100%, 430px);
        padding: 23px 29px;
    }

    .login-card-heading {
        margin-bottom: 16px;
    }

        .login-card-heading h2 {
            font-size: 1.58rem;
        }

        .login-card-heading p {
            margin-top: 7px;
            font-size: 0.79rem;
            line-height: 1.42;
        }

    .login-form {
        gap: 11px;
    }

    .form-group {
        gap: 5px;
    }

    .input-shell input {
        height: 43px;
    }

    .input-icon,
    .password-toggle {
        top: 21.5px;
    }

    .sign-in-button {
        height: 43px;
    }

    .smart-login-note {
        margin-top: 14px;
        padding: 10px 11px;
    }
}

@media (max-width: 1050px) {
    .login-shell {
        grid-template-columns: minmax(340px, 42%) 1fr;
    }

    .login-brand-panel {
        padding-right: 36px;
        padding-left: 36px;
    }

    .login-form-panel {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 820px) {
    body {
        overflow-y: auto;
    }

    .login-shell {
        display: block;
        min-height: 100vh;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        flex-direction: column;
        justify-content: center;
        overflow: visible;
        padding: 28px 20px 70px;
    }

    .mobile-logo-wrap {
        display: block;
        width: min(205px, 58%);
        margin: 0 auto 22px;
    }

    .mobile-logo {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .login-card {
        width: min(100%, 450px);
        padding: 28px 24px;
        border-radius: 18px;
    }

    .login-page-footer {
        bottom: 18px;
    }
}

@media (max-width: 420px) {
    .login-form-panel {
        padding-right: 14px;
        padding-left: 14px;
    }

    .mobile-logo-wrap {
        width: min(190px, 62%);
        margin-bottom: 18px;
    }

    .login-card {
        padding: 24px 19px;
    }

    .login-card-heading {
        margin-bottom: 19px;
    }

        .login-card-heading h2 {
            font-size: 1.58rem;
        }

        .login-card-heading p {
            font-size: 0.8rem;
        }

    .input-shell input {
        padding-right: 43px;
        padding-left: 43px;
    }

    .label-row {
        align-items: flex-start;
    }

    .remember-control {
        font-size: 0.75rem;
    }

    .smart-login-note {
        margin-top: 17px;
    }
}
