/* =========================================================
   NEXT DIGI STORE - LOGIN PAGE
========================================================= */

.nds-login-page {
    margin: 0;
    color: #0f172a;
    background: #f7faff;
}

.nds-login-page *,
.nds-login-page *::before,
.nds-login-page *::after { box-sizing: border-box; }

.login-main {
    position: relative;
    min-height: calc(100vh - 76px);
    padding: 52px 20px 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(37,99,235,.09), transparent 25%),
        radial-gradient(circle at 92% 88%, rgba(14,116,144,.08), transparent 27%),
        linear-gradient(180deg, #f9fbff 0%, #f5f8fd 100%);
}

.login-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .4;
    background-image:
        linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px);
    background-size: 44px 44px;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0,1.08fr) minmax(420px,.92fr);
    border: 1px solid #dfe7f1;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15,23,42,.10);
}

.login-brand-panel {
    position: relative;
    min-width: 0;
    padding: 58px 54px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 86% 14%, rgba(96,165,250,.22), transparent 32%),
        radial-gradient(circle at 8% 90%, rgba(59,130,246,.18), transparent 32%),
        linear-gradient(145deg, #0b1738 0%, #102457 58%, #173b87 100%);
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: -130px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018);
}

.login-brand-content,
.login-brand-visual { position: relative; z-index: 1; }

.login-eyebrow,
.login-form-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .15em;
}

.login-eyebrow { color: #8eb8ff; }
.login-form-kicker { color: #2563eb; }

.login-eyebrow::before,
.login-form-kicker::before {
    content: "";
    width: 27px;
    height: 2px;
    border-radius: 20px;
    background: currentColor;
}

.login-brand-content h1 {
    max-width: 560px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px,4vw,54px);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 800;
}

.login-brand-copy {
    max-width: 570px;
    margin: 21px 0 0;
    color: #bdcbe3;
    font-size: 15px;
    line-height: 1.75;
}

.login-benefit-list {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.login-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.login-benefit-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #9ec1ff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
}

.login-benefit-icon svg,
.login-input-icon svg,
.login-password-toggle svg,
.login-alert-icon svg,
.login-submit-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-benefit-icon svg { width: 17px; height: 17px; }

.login-benefit-item strong {
    display: block;
    margin: 1px 0 4px;
    color: #f8fbff;
    font-size: 13px;
}

.login-benefit-item p {
    margin: 0;
    color: #9eacc5;
    font-size: 11px;
    line-height: 1.55;
}

.login-brand-visual {
    width: 82%;
    margin: 40px auto 0;
}

.login-visual-window {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.07);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.login-visual-topbar {
    height: 31px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.login-visual-topbar span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.32);
}

.login-visual-body {
    height: 152px;
    display: grid;
    grid-template-columns: 42px 1fr;
}

.login-visual-sidebar {
    border-right: 1px solid rgba(255,255,255,.07);
    background: rgba(2,6,23,.18);
}

.login-visual-content { padding: 17px; }

.login-visual-heading,
.login-visual-subheading {
    border-radius: 99px;
    background: rgba(255,255,255,.19);
}

.login-visual-heading { width: 40%; height: 8px; }
.login-visual-subheading { width: 62%; height: 5px; margin-top: 7px; opacity: .55; }

.login-visual-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1.3fr .8fr .8fr;
    gap: 8px;
}

.login-visual-card {
    height: 65px;
    border-radius: 9px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.07);
}

.login-visual-card-large {
    background: linear-gradient(135deg, rgba(96,165,250,.28), rgba(37,99,235,.08));
}

.login-floating-chip {
    position: absolute;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(8,20,50,.78);
    color: #dbeafe;
    font-size: 9px;
    font-weight: 800;
}

.login-floating-chip-top { top: -14px; right: -14px; }
.login-floating-chip-bottom { left: -18px; bottom: 16px; }

.login-form-section {
    min-width: 0;
    padding: 54px 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.login-form-wrap { width: min(420px,100%); }
.login-form-heading { margin-bottom: 28px; }

.login-form-heading h2 {
    margin: 0;
    color: #0b1636;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -.035em;
    font-weight: 800;
}

.login-form-heading p {
    margin: 11px 0 0;
    color: #748196;
    font-size: 14px;
    line-height: 1.7;
}

.login-alert {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 13px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    color: #991b1b;
    background: #fff7f7;
    font-size: 12px;
}

.login-alert-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.login-alert-icon svg { width: 100%; height: 100%; }

.login-form { display: grid; gap: 19px; }
.login-field { display: grid; gap: 8px; }

.login-label-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.login-field label,
.login-label-row label {
    color: #273449;
    font-size: 12px;
    font-weight: 800;
}

.login-label-row a {
    color: #2563eb;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.login-input-wrap {
    position: relative;
    height: 52px;
    display: flex;
    align-items: center;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    background: #fbfdff;
}

.login-input-wrap:focus-within {
    border-color: #7ba5f9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

.login-input-wrap.has-error {
    border-color: #fca5a5;
    background: #fffafa;
}

.login-input-icon {
    width: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    color: #8a98ac;
}

.login-input-icon svg,
.login-password-toggle svg {
    width: 18px;
    height: 18px;
}

.login-input-wrap input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 12px 0 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
}

.login-input-wrap input::placeholder { color: #a6b1c0; }

.login-password-toggle {
    width: 46px;
    height: 100%;
    flex: 0 0 46px;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #8190a5;
    background: transparent;
}

.login-password-toggle:hover { color: #2563eb; }
.login-eye-closed { display: none; }
.login-password-toggle.is-visible .login-eye-open { display: none; }
.login-password-toggle.is-visible .login-eye-closed { display: block; }

.login-field-error {
    color: #dc2626;
    font-size: 11px;
    font-weight: 650;
}

.login-submit-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
    border: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(37,99,235,.20);
}

.login-submit-btn svg { width: 17px; height: 17px; stroke-width: 2; }

.login-divider {
    position: relative;
    margin: 26px 0 17px;
    text-align: center;
}

.login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8edf4;
}

.login-divider span {
    position: relative;
    z-index: 1;
    padding: 0 11px;
    color: #94a3b8;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
}

.login-register-btn {
    width: 100%;
    min-height: 50px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.login-register-btn:hover {
    color: #2563eb;
    border-color: #b9ceee;
    background: #f8fbff;
}

.login-legal {
    margin: 20px auto 0;
    color: #9aa7b8;
    text-align: center;
    font-size: 9.5px;
    line-height: 1.7;
}

.login-legal a {
    color: #66768c;
    text-decoration: underline;
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .login-brand-panel { padding: 46px 42px; }
    .login-brand-visual { width: 72%; }
    .login-form-section { padding: 48px 42px 54px; }
}

@media (max-width: 640px) {
    .login-main {
        min-height: auto;
        padding: 30px 14px 48px;
    }

    .login-shell { border-radius: 20px; }
    .login-brand-panel { padding: 34px 24px 32px; }
    .login-brand-content h1 { font-size: 36px; }
    .login-brand-copy { font-size: 14px; }
    .login-brand-visual { display: none; }
    .login-form-section { padding: 38px 22px 42px; }
    .login-form-heading h2 { font-size: 31px; }
}