/* Customer login — dark theme locked to html[data-theme], matching admin login navy. */

html:not([data-theme='light']) body.customer-ui-new.customer-login-new {
    color-scheme: dark;
    color: #f3f6fb;
    background: #010711;
    --new-blue-rgb: var(--portal-primary-rgb);
    --new-bg-root: #010711;
    --new-bg-sidebar: #020812;
    --new-bg-main: #030a14;
    --new-surface-1: #07111d;
    --new-surface-2: #091321;
    --new-surface-3: #0b1626;
    --new-surface-overlay: #0d1828;
    --new-border: #142238;
    --new-border-strong: #20314d;
    --new-text-1: #f3f6fb;
    --new-text-2: #aab5c7;
    --new-text-3: #7e8ca3;
    --new-control-bg: rgba(9, 19, 33, 0.92);
    --new-shadow-card: 0 8px 24px rgba(0, 0, 0, 0.24);
    --new-shadow-menu: 0 18px 46px rgba(0, 0, 0, 0.42);
}

html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-shell {
    background: var(--new-bg-root);
}

html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-panel {
    background:
        radial-gradient(circle at 0 0, rgba(var(--portal-primary-rgb), .13), transparent 34%),
        linear-gradient(180deg, rgba(3, 10, 20, .99), rgba(2, 8, 18, .98));
    border-inline-end-color: rgba(var(--portal-primary-rgb), .2);
    box-shadow: 24px 0 70px rgba(0, 0, 0, .42);
}

html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-panel::before {
    background-image:
        linear-gradient(rgba(var(--portal-primary-rgb), .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--portal-primary-rgb), .035) 1px, transparent 1px);
}

html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-intro h1 {
    color: var(--new-text-1);
}

html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-intro p,
html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-field label {
    color: var(--new-text-2);
}

html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-theme-btn,
html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-language-button {
    color: var(--new-text-2);
    background: rgba(7, 17, 29, .9);
    border-color: var(--new-border);
}

html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-card {
    background: rgba(7, 17, 29, .9);
    border-color: rgba(var(--portal-primary-rgb), .56);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, .38),
        0 0 34px rgba(var(--portal-primary-rgb), .08);
}

html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-input {
    color: var(--new-text-3);
    background: rgba(3, 10, 20, .84);
    border-color: var(--new-border-strong);
}

html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-input:focus-within {
    color: var(--new-blue-bright);
    background: var(--new-surface-1);
    border-color: var(--new-blue-bright);
}

html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-footer .classic-auth-footer,
html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-register-text {
    color: var(--new-text-3);
}

@media (max-width: 900px) {
    html:not([data-theme='light']) body.customer-ui-new.customer-login-new .customer-auth-card {
        background: rgba(4, 12, 24, 0.88);
    }
}
