:root {
    --nexus-login-navy: #071B3C;
    --nexus-login-blue: #123F7B;
    --nexus-login-gold: #D5A13A;
    --nexus-login-border: rgba(7, 27, 60, .12);
}

.nexus-login-page {
    min-height: calc(100vh - 150px);
    padding: 46px 24px 64px;
    background:
        radial-gradient(circle at 12% 8%, rgba(213, 161, 58, .12), transparent 28%),
        linear-gradient(180deg, #F4F7FB 0%, #EDF2F8 100%);
}

.nexus-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
    width: min(1240px, 100%);
    min-height: 650px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(7, 27, 60, .18);
}

.nexus-login-shell__visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 650px;
    padding: 58px;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(4, 18, 43, .96) 0%, rgba(7, 27, 60, .74) 54%, rgba(7, 27, 60, .22) 100%),
        url('/styles/images/nexus-cover.jpg') center / cover no-repeat;
}

.nexus-login-shell__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 82% 18%, rgba(246, 208, 109, .18), transparent 25%),
        linear-gradient(180deg, transparent 55%, rgba(3, 14, 34, .34));
}

.nexus-login-shell__visual-content {
    position: relative;
    z-index: 1;
    max-width: 570px;
}

.nexus-login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 8px 13px;
    border: 1px solid rgba(246, 208, 109, .52);
    border-radius: 999px;
    color: #F7D477;
    background: rgba(7, 27, 60, .35);
    backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.nexus-login-shell__visual h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 4vw, 62px);
    font-weight: 760;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.nexus-login-shell__visual h1 strong {
    color: #F0C75E;
    font-weight: inherit;
}

.nexus-login-shell__visual p {
    max-width: 520px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .84);
    font-size: 16px;
    line-height: 1.75;
}

.nexus-login-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 28px;
}

.nexus-login-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 550;
}

.nexus-login-benefits i { color: #EAB83E; }

.nexus-login-shell__form {
    display: grid;
    place-items: center;
    padding: 54px 50px;
    background:
        radial-gradient(circle at 100% 0%, rgba(213, 161, 58, .09), transparent 32%),
        linear-gradient(145deg, #FFFFFF 0%, #FBFCFF 72%, #FFF9ED 100%);
}

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

.nexus-login-brand {
    display: none;
    width: 76px;
    height: 62px;
    margin-bottom: 22px;
    padding: 9px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--nexus-login-navy), var(--nexus-login-blue));
    box-shadow: 0 12px 28px rgba(7, 27, 60, .18);
}

.nexus-login-brand img { width: 100%; height: 100%; object-fit: contain; }

.nexus-login-heading > span {
    display: block;
    margin-bottom: 8px;
    color: #B47700;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.nexus-login-heading h2 {
    margin: 0;
    color: var(--nexus-login-navy);
    font-size: 34px;
    font-weight: 720;
    letter-spacing: -.035em;
}

.nexus-login-heading p {
    margin: 10px 0 0;
    color: #758196;
    font-size: 14px;
    line-height: 1.6;
}

.nexus-login-form { margin-top: 30px; }

.nexus-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #F2C1C8;
    border-radius: 12px;
    color: #A33A49;
    background: #FFF0F2;
    font-size: 13px;
    line-height: 1.45;
}

.nexus-login-alert i { margin-top: 2px; }

.nexus-login-field {
    display: block;
    margin: 0 0 17px;
}

.nexus-login-field > span {
    display: block;
    margin-bottom: 7px;
    color: #53627A;
    font-size: 12px;
    font-weight: 650;
}

.nexus-login-control {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--nexus-login-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFD 100%);
    box-shadow: 0 6px 18px rgba(7, 27, 60, .04);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.nexus-login-control:focus-within {
    border-color: #D5A13A;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(213, 161, 58, .13), 0 9px 22px rgba(7, 27, 60, .06);
}

.nexus-login-control > i {
    flex: 0 0 48px;
    width: 48px;
    color: #6E7C91;
    text-align: center;
}

.nexus-login-control input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 14px 0 0;
    border: 0 !important;
    outline: 0 !important;
    color: var(--nexus-login-navy);
    background: transparent !important;
    font-family: inherit;
    font-size: 14px;
    box-shadow: none !important;
}

.nexus-login-control input::placeholder { color: #A0AABA; }

.nexus-login-password-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-right: 3px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    color: #758196;
    background: transparent;
}

.nexus-login-password-toggle:hover {
    color: #8D6400;
    background: #FFF5D8;
}

.nexus-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px 0 22px;
    font-size: 13px;
}

.nexus-login-options > a {
    color: #4B5C74 !important;
    font-weight: 550;
}

.nexus-login-options > a:hover { color: #9A6A00 !important; }

.nexus-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #5E6C81;
    cursor: pointer;
}

.nexus-login-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.nexus-login-checkbox {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(7, 27, 60, .18);
    border-radius: 5px;
    color: transparent;
    background: #fff;
    font-size: 9px;
}

.nexus-login-remember input:checked + .nexus-login-checkbox {
    color: var(--nexus-login-navy);
    border-color: #D5A13A;
    background: linear-gradient(135deg, #E6B94F 0%, #FCDB99 52%, #FFCC73 100%);
}

.nexus-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    border: 1px solid #C9972D;
    border-radius: 14px;
    color: var(--nexus-login-navy) !important;
    background: linear-gradient(135deg, #E6B94F 0%, #FCDB99 52%, #FFCC73 100%);
    box-shadow: 0 12px 28px rgba(213, 161, 58, .27), inset 0 1px rgba(255, 255, 255, .55);
    font-size: 15px;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.nexus-login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.035);
    box-shadow: 0 15px 32px rgba(213, 161, 58, .34), inset 0 1px rgba(255, 255, 255, .6);
}

.nexus-login-submit:disabled { cursor: wait; opacity: .72; }
.nexus-login-submit i { margin-right: 7px; }

.nexus-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 17px;
    color: #A1AAB9;
    font-size: 11px;
    text-transform: uppercase;
}

.nexus-login-divider::before,
.nexus-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(7, 27, 60, .09);
}

.nexus-login-register {
    margin: 0;
    color: #758196;
    text-align: center;
    font-size: 13px;
}

.nexus-login-register a {
    margin-left: 4px;
    color: var(--nexus-login-navy) !important;
    font-weight: 700;
}

.nexus-login-register a:hover { color: #9A6A00 !important; }

.nexus-login-security {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(7, 27, 60, .08);
    color: #8A95A5;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.nexus-login-security i { margin-top: 2px; color: #B78618; }

@media (max-width: 991.98px) {
    .nexus-login-page { padding: 28px 18px 48px; }
    .nexus-login-shell { grid-template-columns: 1fr; min-height: 0; }
    .nexus-login-shell__visual { min-height: 360px; padding: 38px; }
    .nexus-login-shell__visual h1 { font-size: 44px; }
    .nexus-login-shell__form { padding: 42px 34px; }
    .nexus-login-brand { display: block; }
}

@media (max-width: 575.98px) {
    .nexus-login-page { padding: 16px 10px 34px; }
    .nexus-login-shell { border-radius: 22px; }
    .nexus-login-shell__visual { min-height: 285px; padding: 28px 24px; }
    .nexus-login-shell__visual h1 { font-size: 36px; }
    .nexus-login-shell__visual p { font-size: 14px; }
    .nexus-login-benefits { display: grid; gap: 9px; }
    .nexus-login-shell__form { padding: 34px 22px; }
    .nexus-login-heading h2 { font-size: 29px; }
    .nexus-login-options { align-items: flex-start; flex-direction: column; gap: 10px; }
}
