/* ===== BEGIN lux-auth.css ===== */
/* LuxPos Auth — Centroos-inspired glass login */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --lux-auth-bg: #050505;
    --lux-auth-panel: rgba(20, 20, 25, 0.75);
    --lux-auth-panel-alt: rgba(0, 0, 0, 0.3);
    --lux-auth-border: rgba(255, 255, 255, 0.08);
    --lux-auth-text: #f3f4f6;
    --lux-auth-muted: #9ca3af;
    --lux-auth-label: #9ca3af;
    --lux-auth-primary: #4f46e5;
    --lux-auth-primary-hover: var(--lux-accent-strong);
    --lux-auth-accent: #8b5cf6;
    --lux-auth-primary-glow: rgba(79, 70, 229, 0.4);
    --lux-auth-radius-lg: 24px;
    --lux-auth-radius-md: 16px;
    --lux-auth-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    min-height: 100%;
    height: auto;
    background-color: var(--lux-auth-bg);
}

body.lux-dark-auth,
body.lux-dark-auth.hold-transition {
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 0;
    font-family: Outfit, system-ui, sans-serif;
    background-color: var(--lux-auth-bg) !important;
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -15%, rgba(79, 70, 229, 0.14), transparent),
        radial-gradient(ellipse 55% 45% at 100% 100%, rgba(139, 92, 246, 0.09), transparent),
        radial-gradient(ellipse 45% 40% at 0% 80%, rgba(59, 130, 246, 0.06), transparent);
    background-attachment: fixed;
    color: var(--lux-auth-text);
    overflow-x: hidden;
    position: relative;
}

body.lux-dark-auth::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--lux-auth-bg);
    pointer-events: none;
}

#lux-auth-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.lux-glass {
    background: var(--lux-auth-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--lux-auth-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lux-glass-strong {
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Top bar (floating pill) ── */
.lux-auth-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(95%, 1200px);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--lux-auth-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--lux-auth-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: var(--lux-auth-transition);
}

.lux-auth-nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    min-width: 0;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lux-auth-nav-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lux-auth-nav-logo-icon img {
    max-width: 22px;
    max-height: 22px;
    object-fit: contain;
}

.lux-auth-nav-logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lux-auth-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lux-auth-nav-link {
    color: var(--lux-auth-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--lux-auth-transition);
}

.lux-auth-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lux-auth-nav-link--icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.lux-auth-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--lux-auth-primary), var(--lux-auth-accent));
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 15px var(--lux-auth-primary-glow);
    transition: var(--lux-auth-transition);
}

.lux-auth-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px var(--lux-auth-primary-glow);
    color: #fff;
}

.lux-auth-nav .tw-dw-dropdown { margin: 0 !important; }

.lux-auth-nav .tw-dw-dropdown summary {
    color: #e4e4e7 !important;
    cursor: pointer;
    list-style: none;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.lux-auth-nav .tw-dw-dropdown summary::-webkit-details-marker { display: none; }

body.lux-dark-auth .lux-auth-nav .tw-dw-menu,
body.lux-dark-auth .lux-auth-nav .tw-bg-white {
    background: #27272a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    border-radius: 10px !important;
}

body.lux-dark-auth .lux-auth-nav .tw-dw-menu a,
body.lux-dark-auth .lux-auth-nav .change_lang {
    color: #e4e4e7 !important;
}

body.lux-dark-auth .lux-auth-nav .tw-dw-menu a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

/* ── Layout ── */
.auth-page-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6.5rem 1.25rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.lux-login-shell {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 600px;
    border-radius: var(--lux-auth-radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: luxAuthIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 900px) {
    .lux-login-shell {
        grid-template-columns: 1fr 1fr;
    }
}

@keyframes luxAuthIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Left visual panel ── */
.lux-login-visual {
    position: relative;
    background: #0f1115;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    display: flex;
    flex-direction: column;
    color: #fff;
    overflow: hidden;
    min-height: 360px;
}

.lux-visual-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--lux-auth-primary) 0%, transparent 70%);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    z-index: 0;
    animation: luxPulseGlow 8s infinite alternate;
    pointer-events: none;
}

.lux-visual-glow--accent {
    width: 400px;
    height: 400px;
    top: 20%;
    left: 70%;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    opacity: 0.12;
    animation-duration: 6s;
    animation-direction: alternate-reverse;
}

.lux-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.65rem;
    width: fit-content;
}

.lux-slide-badge--indigo {
    background: rgba(79, 70, 229, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.35);
    color: #a5b4fc;
}

.lux-slide-badge--amber {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fcd34d;
}

.lux-slide-badge--green {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}

.lux-slide-badge--violet {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #c4b5fd;
}

.lux-slide-badge--purple {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.35);
    color: #d8b4fe;
}

.lux-slide-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.lux-slide-stat {
    flex: 1;
    min-width: 72px;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.lux-slide-stat strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.lux-slide-stat span {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    color: #9ca3af;
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lux-visual-footer {
    position: relative;
    z-index: 12;
    flex-shrink: 0;
    padding: 0.85rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.lux-visual-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.lux-visual-chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #c7d2fe;
    background: rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.lux-visual-chips span i {
    font-size: 0.5625rem;
    opacity: 0.85;
}

@keyframes luxPulseGlow {
    0% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.1); }
}

.lux-slider-container {
    position: relative;
    z-index: 10;
    flex: 1;
    min-height: 340px;
    padding: 1.5rem 1.5rem 0.75rem;
    box-sizing: border-box;
}

.lux-login-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem 1.5rem 0.75rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--lux-auth-transition);
    pointer-events: none;
}

.lux-login-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.lux-slide-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lux-login-slide--pos .lux-slide-icon {
    background: rgba(79, 70, 229, 0.1);
    color: var(--lux-accent);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.lux-login-slide--inventory .lux-slide-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.lux-login-slide--purchase .lux-slide-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.lux-login-slide--reports .lux-slide-icon {
    background: rgba(161, 161, 170, 0.1);
    color: #e4e4e7;
    border: 1px solid rgba(161, 161, 170, 0.2);
}

.lux-login-slide--ops .lux-slide-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.lux-slide-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lux-slide-desc {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.55;
    max-width: 100%;
}

.lux-slide-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.lux-slide-feature {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e5e7eb;
    transition: var(--lux-auth-transition);
}

.lux-slide-feature:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(129, 140, 248, 0.25);
    transform: translateY(-1px);
}

.lux-slide-feature i {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
}

.lux-slider-nav {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.lux-slider-dot {
    width: 40px;
    height: 4px;
    border: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
    cursor: pointer;
    transition: var(--lux-auth-transition);
}

.lux-slider-dot.is-active {
    width: 60px;
    background: var(--lux-auth-primary);
    box-shadow: 0 0 10px var(--lux-auth-primary-glow);
}

/* ── Form panel ── */
.lux-login-form-panel {
    padding: 3rem;
    background: #151518;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.lux-login-form-intro {
    margin-bottom: 2rem;
    text-align: center;
}

.lux-login-form-intro h1 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.lux-login-form-intro p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--lux-auth-muted);
}

.lux-form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.lux-form-input {
    width: 100%;
    padding: 1rem 3rem;
    background-color: #1e1e26 !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--lux-auth-radius-md);
    color: #f3f4f6 !important;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: var(--lux-auth-transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.lux-form-input:-webkit-autofill,
.lux-form-input:-webkit-autofill:hover,
.lux-form-input:-webkit-autofill:focus,
.lux-form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1e1e26 inset !important;
    box-shadow: 0 0 0 1000px #1e1e26 inset !important;
    -webkit-text-fill-color: #f3f4f6 !important;
    caret-color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    transition: background-color 99999s ease-out, color 99999s ease-out;
}

html[dir="ltr"] .lux-form-input,
body:not([dir="rtl"]) .lux-form-input {
    padding-left: 3rem;
    padding-right: 3rem;
}

html[dir="rtl"] .lux-form-input,
body[dir="rtl"] .lux-form-input {
    padding-right: 3rem;
    padding-left: 3rem;
}

.lux-form-input:focus {
    border-color: rgba(129, 140, 248, 0.65);
    background-color: #252530 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

.lux-form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #252530 inset, 0 0 0 4px rgba(79, 70, 229, 0.18) !important;
    box-shadow: 0 0 0 1000px #252530 inset, 0 0 0 4px rgba(79, 70, 229, 0.18) !important;
}

.lux-input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lux-auth-muted);
    transition: var(--lux-auth-transition);
    pointer-events: none;
}

html[dir="ltr"] .lux-input-icon,
body:not([dir="rtl"]) .lux-input-icon { left: 1rem; }
html[dir="rtl"] .lux-input-icon,
body[dir="rtl"] .lux-input-icon { right: 1rem; }

.lux-form-input:focus + .lux-input-icon {
    color: var(--lux-auth-primary);
}

.lux-floating-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lux-auth-muted);
    pointer-events: none;
    transition: var(--lux-auth-transition);
    background: transparent;
    padding: 0 0.25rem;
    font-size: 1rem;
}

html[dir="ltr"] .lux-floating-label,
body:not([dir="rtl"]) .lux-floating-label { left: 3rem; }
html[dir="rtl"] .lux-floating-label,
body[dir="rtl"] .lux-floating-label { right: 3rem; }

.lux-form-input:focus ~ .lux-floating-label,
.lux-form-input:not(:placeholder-shown) ~ .lux-floating-label {
    top: 0;
    font-size: 0.8rem;
    color: var(--lux-auth-primary);
    background: #252530;
    border-radius: 4px;
}

html[dir="ltr"] .lux-form-input:focus ~ .lux-floating-label,
html[dir="ltr"] .lux-form-input:not(:placeholder-shown) ~ .lux-floating-label,
body:not([dir="rtl"]) .lux-form-input:focus ~ .lux-floating-label,
body:not([dir="rtl"]) .lux-form-input:not(:placeholder-shown) ~ .lux-floating-label {
    left: 0.8rem;
}

html[dir="rtl"] .lux-form-input:focus ~ .lux-floating-label,
html[dir="rtl"] .lux-form-input:not(:placeholder-shown) ~ .lux-floating-label,
body[dir="rtl"] .lux-form-input:focus ~ .lux-floating-label,
body[dir="rtl"] .lux-form-input:not(:placeholder-shown) ~ .lux-floating-label {
    right: 0.8rem;
}

.lux-input-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--lux-auth-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.lux-input-toggle:hover { color: #fff; }

html[dir="ltr"] .lux-input-toggle { right: 1rem; }
html[dir="rtl"] .lux-input-toggle { left: 1rem; }

.lux-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.lux-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lux-auth-muted);
    cursor: pointer;
    margin: 0;
    transition: color 0.2s;
}

.lux-remember:hover { color: #fff; }
.lux-remember input { accent-color: var(--lux-auth-primary); width: 1rem; height: 1rem; }

.lux-forgot-link {
    color: var(--lux-accent);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.lux-forgot-link:hover { color: #a5b4fc; }

.lux-submit-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: var(--lux-auth-radius-md);
    background: linear-gradient(135deg, var(--lux-auth-primary), var(--lux-auth-accent));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--lux-auth-primary-glow);
    transition: var(--lux-auth-transition);
}

.lux-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--lux-auth-primary-glow);
}

.lux-form-footer {
    text-align: center;
    margin-top: 1.1rem;
    font-size: 0.8125rem;
    color: var(--lux-auth-muted);
}

.lux-form-footer a {
    color: var(--lux-accent);
    font-weight: 600;
    text-decoration: none;
}

.lux-form-footer a:hover {
    color: #a5b4fc;
}

.lux-error-msg {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #fca5a5;
}

.lux-form-group.has-error .lux-form-input {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(239, 68, 68, 0.08);
}

/* Demo + other auth pages */
.lux-demo-panel {
    width: 100%;
    max-width: 1040px;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--lux-auth-border);
    background: var(--lux-auth-panel);
}

.lux-demo-panel .box { background: transparent !important; border: none !important; box-shadow: none !important; margin: 0 !important; }
.lux-demo-panel .box-header { background: transparent !important; border: none !important; color: #d4d4d8 !important; }

.lux-auth-card {
    width: 100%;
    max-width: 460px;
    border-radius: 12px;
    border: 1px solid var(--lux-auth-border);
    background: var(--lux-auth-panel);
    overflow: hidden;
}

.lux-auth-card.lux-auth-card-wide { max-width: 820px; }

.lux-auth-card-body { padding: 2rem 1.75rem; }

.lux-form-header { margin-bottom: 1.5rem; text-align: center; }
.lux-form-header h1 { font-size: 1.35rem; font-weight: 700; color: #fafafa !important; margin: 0; }
.lux-form-header p { font-size: 0.875rem; color: var(--lux-auth-muted); margin: 0.35rem 0 0; }

.auth-page-content .form-control,
.auth-page-content select.form-control,
.auth-page-content input.form-control,
.auth-page-content textarea.form-control {
    background: #1a1a22 !important;
    background-color: #1a1a22 !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f4f4f5 !important;
    -webkit-text-fill-color: #f4f4f5 !important;
    caret-color: #f4f4f5 !important;
    border-radius: 8px !important;
    color-scheme: dark;
}
.auth-page-content .form-control::placeholder {
    color: #8b8b96 !important;
    -webkit-text-fill-color: #8b8b96 !important;
    opacity: 1 !important;
}
.auth-page-content .form-control:-webkit-autofill,
.auth-page-content .form-control:-webkit-autofill:hover,
.auth-page-content .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1a1a22 inset !important;
    -webkit-text-fill-color: #f4f4f5 !important;
    caret-color: #f4f4f5 !important;
}

.auth-page-content label,
.auth-page-content h3 { color: #d4d4d8 !important; }

.auth-page-content .alert-info {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--lux-auth-border);
    color: #d4d4d8;
    border-radius: 8px;
}

.lux-welcome-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    text-align: center;
    color: #fafafa;
    margin: 0;
}

.lux-welcome-subtitle {
    text-align: center;
    color: var(--lux-auth-muted);
    margin-top: 0.5rem;
}

/* Select2 / menus — dark lists, never white-on-white */
body.lux-dark-auth .select2-dropdown,
.select2-dropdown {
    background: #1c1c22 !important;
    border-color: var(--lux-auth-border, rgba(255, 255, 255, 0.12)) !important;
    color: #f4f4f5 !important;
}
body.lux-dark-auth .select2-results__option,
.select2-results__option {
    background: #1c1c22 !important;
    color: #e4e4e7 !important;
    -webkit-text-fill-color: #e4e4e7 !important;
}
body.lux-dark-auth .select2-results__option--highlighted[aria-selected],
body.lux-dark-auth .select2-container--default .select2-results__option--highlighted[aria-selected],
body.lux-dark-auth .select2-container--default .select2-results__option[aria-selected=true],
.select2-results__option--highlighted[aria-selected] {
    background: #4f46e5 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
body.lux-dark-auth select option,
body.lux-dark-auth select optgroup {
    background: #18181b !important;
    color: #f4f4f5 !important;
}
/* Language & DaisyUI menus on auth */
body.lux-dark-auth .lux-lang-menu,
body.lux-dark-auth .tw-dw-dropdown-content,
body.lux-dark-auth .tw-bg-white.tw-dw-menu,
body.lux-dark-auth .tw-bg-white.tw-dw-dropdown-content {
    background: #18181b !important;
    background-color: #18181b !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e4e4e7 !important;
}
body.lux-dark-auth .lux-lang-menu a,
body.lux-dark-auth .tw-dw-dropdown-content a,
body.lux-dark-auth .tw-dw-menu a {
    color: #e4e4e7 !important;
    -webkit-text-fill-color: #e4e4e7 !important;
}
body.lux-dark-auth .lux-lang-menu a:hover,
body.lux-dark-auth .tw-dw-dropdown-content a:hover,
body.lux-dark-auth .tw-dw-menu a:hover {
    background: rgba(79, 70, 229, 0.28) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
body.lux-dark-auth .lux-lang-summary {
    color: #f4f4f5 !important;
}

/* Mobile */
@media (max-width: 900px) {
    .lux-login-shell {
        max-width: 440px;
        min-height: auto;
    }

    .lux-slider-container {
        padding: 1rem 1.25rem 0.5rem;
        min-height: 280px;
    }

    .lux-login-slide { padding: 1rem 1.25rem 0.5rem; }
    .lux-slide-desc { font-size: 0.85rem; margin-bottom: 0.75rem; }
    .lux-slide-features { grid-template-columns: 1fr; gap: 0.45rem; }
    .lux-slide-stats { gap: 0.4rem; margin-bottom: 0.65rem; }
    .lux-visual-footer { padding: 0.75rem 1.25rem 1rem; gap: 0.65rem; }
    .lux-visual-chips { display: none; }
    .lux-login-form-panel { padding: 2rem 1.5rem; }
}

@media (max-width: 768px) {
    .auth-page-content { padding: 5.5rem 0.85rem 1.5rem; }
    .lux-auth-nav {
        width: 90%;
        top: 10px;
        padding: 0.6rem 1rem;
    }
    .lux-auth-nav-link-text { display: none; }
    .lux-auth-nav-btn span { display: none; }
}

/* ── Impact login shell ── */
.lux-login-shell--impact {
    position: relative;
    max-width: 1080px;
    isolation: isolate;
}

.lux-login-shell--impact::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--lux-auth-radius-lg) + 2px);
    background: linear-gradient(120deg, var(--lux-info), var(--lux-accent-strong), #a855f7, var(--lux-info));
    background-size: 300% 300%;
    animation: luxLoginBorderShift 8s ease infinite;
    z-index: -1;
    opacity: 0.85;
}

.lux-login-shell--impact::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--lux-auth-radius-lg);
    box-shadow:
        0 0 60px rgba(14, 165, 233, 0.12),
        0 0 120px rgba(99, 102, 241, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: -1;
}

@keyframes luxLoginBorderShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.lux-visual-glow--cyan {
    width: 320px;
    height: 320px;
    top: 75%;
    left: 15%;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    opacity: 0.14;
    animation-duration: 7s;
}

.lux-visual-brand {
    position: relative;
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 1.5rem 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lux-muted);
}

.lux-visual-brand strong {
    color: #e0f2fe;
    font-weight: 800;
}

.lux-visual-brand__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
    animation: luxLoginPulseDot 2s ease-in-out infinite;
}

@keyframes luxLoginPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.2); }
}

.lux-visual-brand__sep {
    opacity: 0.45;
}

.lux-login-brand-hero {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
}

.lux-login-brand-orbit {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid transparent;
    border-top-color: #38bdf8;
    border-right-color: var(--lux-accent);
    animation: luxLoginSpin 4s linear infinite;
}

@keyframes luxLoginSpin {
    to { transform: rotate(360deg); }
}

.lux-login-brand-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #e0f2fe;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.35), rgba(99, 102, 241, 0.35));
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.35);
}

.lux-login-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bae6fd;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(99, 102, 241, 0.22));
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.15);
}

.lux-login-form-intro h1 {
    font-size: clamp(1.6rem, 3vw, 2rem) !important;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 55%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lux-login-trust-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
}

.lux-login-trust-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a5b4fc;
    background: rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.22);
}

.lux-login-trust-pills span i {
    font-size: 0.62rem;
    color: #67e8f9;
}

.lux-login-shell--impact .lux-submit-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--lux-info) 0%, #4f46e5 50%, #7c3aed 100%);
    background-size: 200% auto;
    box-shadow:
        0 12px 32px rgba(79, 70, 229, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    animation: luxLoginBtnGlow 4s ease infinite;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    min-height: 52px;
}

.lux-login-shell--impact .lux-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
    transform: translateX(-120%);
    animation: luxLoginBtnShine 3.5s ease-in-out infinite;
}

@keyframes luxLoginBtnGlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes luxLoginBtnShine {
    0%, 75%, 100% { transform: translateX(-120%); }
    40% { transform: translateX(120%); }
}

.lux-login-shell--impact .lux-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px rgba(79, 70, 229, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.lux-login-shell--impact .lux-form-input:focus {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.lux-auth-status {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.1);
    color: #bbf7d0;
    font-size: 0.875rem;
    line-height: 1.45;
}

.lux-auth-status i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #4ade80;
}

.lux-form-footer a i {
    margin-inline-end: 0.35rem;
    font-size: 0.75rem;
}

/* Package cards — see lux-pricing.css on /pricing */
/* Language: globe icon only when CSS shows it (landing phone) */
.lux-lang-globe { display: none; }
.lux-lang-summary { display: inline-flex; align-items: center; gap: 0.35rem; }
/* ===== END lux-auth.css ===== */
/* ===== BEGIN lux-auth-theme.css ===== */
/* ═══════════════════════════════════════════════════════════════════
   Auth theme tokens — Apple-style light, with automatic dark mode.

   Every colour in lux-login-lite.css and lux-repair-status-lite.css is
   expressed as one of these tokens, so both themes are driven from here.
   Load this BEFORE those two stylesheets.

   Covers: login · forgot password · reset password · 2FA challenge ·
           customer screen (lookup, device cards, chat, invoices,
           notifications, diagnostics).
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --a-bg:         #f5f5f7;  /* page */
  --a-surface:    #ffffff;  /* cards, panels, sheets */
  --a-surface-2:  #f5f5f7;  /* inputs, insets, subtle fills */

  /* Hairlines */
  --a-line:       #d2d2d7;
  --a-line-soft:  #e8e8ed;

  /* Text */
  --a-text:       #1d1d1f;
  --a-text-2:     #3a3a3c;
  --a-muted:      #6e6e73;
  --a-faint:      #86868b;

  --a-shadow:     rgba(0, 0, 0, 0.10);

  /* Blue — primary action */
  --a-blue:       #0071e3;
  --a-blue-hi:    #0077ed;
  --a-blue-deep:  #0051b3;
  --a-on-blue:    #0071e3;  /* text sitting on a blue-tinted chip */
  --a-blue-bg:    rgba(0, 113, 227, 0.10);
  --a-blue-bd:    rgba(0, 113, 227, 0.28);

  /* Green — success / ready */
  --a-green:      #1d6f42;
  --a-green-bg:   rgba(29, 111, 66, 0.10);
  --a-green-bd:   rgba(29, 111, 66, 0.26);

  /* Red — errors / overdue */
  --a-red:        #d70015;
  --a-red-bg:     rgba(215, 0, 21, 0.08);
  --a-red-bd:     rgba(215, 0, 21, 0.24);

  /* Amber — warnings / pending */
  --a-amber:      #8a5a00;
  --a-amber-bg:   rgba(180, 120, 0, 0.10);
  --a-amber-bd:   rgba(180, 120, 0, 0.26);

  /* Violet — status updates */
  --a-violet:     #5a3fc0;
  --a-violet-bg:  rgba(90, 63, 192, 0.10);
  --a-violet-bd:  rgba(90, 63, 192, 0.26);

  /* Teal — diagnostics */
  --a-teal:       #0f766e;
  --a-teal-bg:    rgba(15, 118, 110, 0.10);
  --a-teal-bd:    rgba(15, 118, 110, 0.26);
}

@media (prefers-color-scheme: dark) {
  :root {
    --a-bg:         #0b0b0d;
    --a-surface:    #1c1c1e;
    --a-surface-2:  #2c2c2e;

    --a-line:       #38383a;
    --a-line-soft:  #2c2c2e;

    --a-text:       #f5f5f7;
    --a-text-2:     #e5e5ea;
    --a-muted:      #98989d;
    --a-faint:      #8e8e93;

    --a-shadow:     rgba(0, 0, 0, 0.55);

    --a-blue:       #0a84ff;
    --a-blue-hi:    #409cff;
    --a-blue-deep:  #0060df;
    --a-on-blue:    #cfe9ff;
    --a-blue-bg:    rgba(10, 132, 255, 0.16);
    --a-blue-bd:    rgba(10, 132, 255, 0.36);

    --a-green:      #30d158;
    --a-green-bg:   rgba(48, 209, 88, 0.16);
    --a-green-bd:   rgba(48, 209, 88, 0.36);

    --a-red:        #ff453a;
    --a-red-bg:     rgba(255, 69, 58, 0.16);
    --a-red-bd:     rgba(255, 69, 58, 0.36);

    --a-amber:      #ffd60a;
    --a-amber-bg:   rgba(255, 214, 10, 0.14);
    --a-amber-bd:   rgba(255, 214, 10, 0.32);

    --a-violet:     #bf5af2;
    --a-violet-bg:  rgba(191, 90, 242, 0.16);
    --a-violet-bd:  rgba(191, 90, 242, 0.34);

    --a-teal:       #40c8e0;
    --a-teal-bg:    rgba(64, 200, 224, 0.14);
    --a-teal-bd:    rgba(64, 200, 224, 0.32);
  }
}

/* ─────────────────────────────────────────────────────────────────
   Apple polish — typography and shape, shared by every auth screen.
   ───────────────────────────────────────────────────────────────── */

/* NOTE ON SPECIFICITY
   This sheet loads BEFORE lux-login-lite.css / lux-repair-status-lite.css so
   the tokens above are defined when those sheets consume them. That means the
   polish rules below would LOSE a same-specificity tie to the later sheets.
   Each one is therefore prefixed with `html body.lux-login-page` so it wins on
   specificity and never depends on load order. */

html body.lux-login-page {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

html[dir="rtl"] body.lux-login-page {
  font-family: "Noto Sans Arabic", -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
}

/* Headings: Apple's tight tracking, lighter weight than the old 800 */
body.lux-login-page .lux-login-form-intro h1,
body.lux-login-page .lux-login-visual h2 {
  font-weight: 600;
  letter-spacing: -0.022em;
}

/* Shell: hairline + soft shadow instead of the glow stack */
body.lux-login-page .lux-login-shell {
  box-shadow: 0 12px 40px var(--a-shadow);
}

/* The gradient accent line across the top of the shell reads as noise
   in a light theme */
body.lux-login-page .lux-login-shell::before {
  display: none;
}

/* Primary button: flat Apple blue, no gradient, no coloured glow */
body.lux-login-page .lux-submit {
  background: var(--a-blue);
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}

body.lux-login-page .lux-submit:hover {
  background: var(--a-blue-hi);
  filter: none;
  box-shadow: none;
}

body.lux-login-page .lux-submit:active {
  background: var(--a-blue-deep);
}

/* Field labels: sentence case, not shouting */
body.lux-login-page .lux-field label {
  font-weight: 500;
  letter-spacing: 0;
}

/* Autofill: keep the surface, not a hardcoded navy */
body.lux-login-page .lux-field input:-webkit-autofill,
body.lux-login-page .lux-field input:-webkit-autofill:hover,
body.lux-login-page .lux-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--a-text);
  -webkit-box-shadow: 0 0 0 1000px var(--a-surface-2) inset !important;
}

/* ═════════════════════════════════════════════════════════════════
   Customer screen (/repair-status).

   This page does NOT extend the auth layout — it ships its own <head>
   and its own skin (lux-device-external.css), and it also pulls in
   lux-public-theme.css + lux-landing.css, both of which define the dark
   marketing --lp-* palette. Those sheets load after ours, so the dark
   values would win and fight the light theme.

   Re-point the --lp-* palette at our tokens for this page only. The
   marketing site itself is untouched (it has no .lux-device-ext body).
   ═════════════════════════════════════════════════════════════════ */

body.lux-device-ext {
  --lp-bg: var(--a-bg);
  --lp-bg-deep: var(--a-bg);
  --lp-bg-image: none;
  --lp-surface: var(--a-surface);
  --lp-surface-2: var(--a-surface-2);
  --lp-border: var(--a-line);
  --lp-text: var(--a-text);
  --lp-muted: var(--a-muted);
  --lp-primary: var(--a-blue);
  --lp-primary-2: var(--a-blue-hi);
  --lp-accent: var(--a-blue);
  --lp-glow: var(--a-blue-bg);
}

/* The marketing sheet paints the page dark via body.lux-landing, which
   this page also carries. Same specificity, later sheet — so it needs
   overriding, not just re-tokenising. */
body.lux-device-ext.lux-landing,
body.lux-device-ext.lux-public {
  background-color: var(--a-bg);
  background-image: none;
  color: var(--a-text);
}

/* White text that used to sit on dark panels and now sits on white ones.
   (`#fff` is three characters, so it slipped past the colour sweep — the
   same trap that hid the secondary button earlier.) */
body.lux-device-ext .lux-rs-form-panel .lux-login-form-intro h1 {
  color: var(--a-text) !important;
}

body.lux-device-ext .lux-visual-brand strong,
body.lux-device-ext .lux-slide-stat strong {
  color: var(--a-text);
}

body.lux-device-ext .lux-slide-title {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--a-text);
}

body.lux-device-ext .ldx-foot-links a:hover {
  color: var(--a-text);
}

body.lux-device-ext .ldx-lang-item.is-active {
  color: var(--a-blue);
}

/* ── The left panel ───────────────────────────────────────────────
   It is a marketing carousel: three rotating slides, each with a badge
   in a different hue (indigo / violet / amber), sitting on three blurred
   coloured glow blobs. That works on a black background and turns into
   noise on a white sheet. Stripped to a calm, monochrome panel: the
   information stays, the decoration goes.
   ───────────────────────────────────────────────────────────────── */

/* The three coloured glow blobs — pure decoration, and the main source
   of the colour clash. */
body.lux-device-ext .lux-visual-glow {
  display: none;
}

body.lux-device-ext .lux-login-visual,
body.lux-device-ext .lux-rs-visual {
  background: var(--a-surface);
  border-inline-end: 1px solid var(--a-line);
}

/* One neutral chip instead of three competing hues */
body.lux-device-ext .lux-slide-badge,
body.lux-device-ext .lux-slide-badge--indigo,
body.lux-device-ext .lux-slide-badge--violet,
body.lux-device-ext .lux-slide-badge--amber {
  color: var(--a-muted);
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
  font-weight: 500;
  letter-spacing: 0;
}

body.lux-device-ext .lux-visual-brand {
  color: var(--a-muted);
}

body.lux-device-ext .lux-visual-brand__dot {
  background: var(--a-muted);
}

body.lux-device-ext .lux-slide-icon {
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
  color: var(--a-muted);
}

body.lux-device-ext .lux-slide-title {
  font-weight: 600;
  letter-spacing: -0.022em;
}

body.lux-device-ext .lux-slide-desc,
body.lux-device-ext .ldx-lang-item {
  color: var(--a-muted);
}

body.lux-device-ext .lux-login-slide--reports .lux-slide-icon {
  color: var(--a-muted);
}

/* `color: var(--a-line)` is a hairline grey — as text on white it was
   all but unreadable. */
body.lux-device-ext .lux-slide-feature {
  background: transparent;
  border: 1px solid var(--a-line);
  color: var(--a-text);
  font-weight: 400;
}

body.lux-device-ext .lux-slide-stat {
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
}

body.lux-device-ext .lux-slide-stat span {
  color: var(--a-muted);
}

/* Slider dots: grey rail, dark active — no blue */
body.lux-device-ext .lux-slider-dot {
  background: var(--a-line);
}

body.lux-device-ext .lux-slider-dot.is-active {
  background: var(--a-text);
}

body.lux-device-ext .lux-visual-chips span {
  color: var(--a-muted);
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
}

body.lux-device-ext .lux-visual-footer {
  color: var(--a-faint);
}

/* ── The floating bar ─────────────────────────────────────────────
   Keep the pill silhouette — it is the elegant part — but make it a
   light, translucent, blurred surface instead of a dark slab, and give
   it a proper button hierarchy: outlined pills for secondary actions,
   a single solid blue pill for the primary one.
   ───────────────────────────────────────────────────────────────── */

body.lux-device-ext .ldx-top {
  background: var(--a-surface); /* fallback */
  background: color-mix(in srgb, var(--a-surface) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--a-line);
  box-shadow: 0 4px 24px var(--a-shadow);
}

body.lux-device-ext .ldx-brand {
  color: var(--a-text);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: opacity 0.15s ease;
}

body.lux-device-ext .ldx-brand:hover {
  opacity: 0.65;
}

body.lux-device-ext .ldx-btn {
  font-weight: 500;
  letter-spacing: 0;
  color: var(--a-text);
  background: transparent;
  border: 1px solid var(--a-line);
  transition: background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

body.lux-device-ext .ldx-btn:hover {
  color: var(--a-text);
  background: var(--a-surface-2);
  border-color: var(--a-muted);
}

body.lux-device-ext .ldx-btn-primary {
  color: #ffffff;
  background: var(--a-blue);
  border-color: var(--a-blue);
}

body.lux-device-ext .ldx-btn-primary:hover {
  color: #ffffff;
  background: var(--a-blue-hi);
  border-color: var(--a-blue-hi);
}

body.lux-device-ext .ldx-btn-primary:active {
  background: var(--a-blue-deep);
  border-color: var(--a-blue-deep);
}

/* ─────────────────────────────────────────────────────────────────
   Top bar.
   It was a row of bare text links floating on the page background with
   no surface of their own. Given a real bar — translucent, blurred,
   closed with a hairline — and proper buttons: quiet outlined pills for
   the secondary actions, one solid blue pill for the primary one.
   ───────────────────────────────────────────────────────────────── */

body.lux-login-page .lux-login-top {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: none;
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
  background: var(--a-bg); /* fallback where color-mix is unsupported */
  background: color-mix(in srgb, var(--a-bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--a-line);
}

body.lux-login-page .lux-login-brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--a-text) !important;
  transition: opacity 0.15s ease;
}

body.lux-login-page .lux-login-brand:hover {
  opacity: 0.65;
}

body.lux-login-page .lux-login-top__actions {
  gap: 0.5rem;
}

/* Secondary: outlined pill */
body.lux-login-page .lux-login-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--a-text) !important;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  transition: background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

body.lux-login-page .lux-login-link:hover {
  color: var(--a-text) !important;
  background: var(--a-surface-2);
  border-color: var(--a-muted);
}

/* Primary: one solid blue pill, the only filled colour up here */
body.lux-login-page .lux-login-link--accent {
  color: #ffffff !important;
  background: var(--a-blue);
  border-color: var(--a-blue);
}

body.lux-login-page .lux-login-link--accent:hover {
  color: #ffffff !important;
  background: var(--a-blue-hi);
  border-color: var(--a-blue-hi);
}

body.lux-login-page .lux-login-link--accent:active {
  background: var(--a-blue-deep);
  border-color: var(--a-blue-deep);
}

/* The page content shouldn't start flush against the bar */
body.lux-login-page .lux-login-main {
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  body.lux-login-page .lux-login-link {
    height: 32px;
    padding: 0 0.75rem;
    font-size: 0.78rem;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Form clarity.
   In the light theme the shell, the visual panel and the form panel all
   resolve to white, so the inputs stopped reading as inputs. Apple's
   pattern: white sheet, grey-filled fields, hairline borders, a strong
   focus ring, and labels in full-strength text.
   ───────────────────────────────────────────────────────────────── */

body.lux-login-page .lux-login-shell {
  border: 1px solid var(--a-line);
  border-radius: 20px;
}

/* One white card on a grey page, split by a hairline — no two-tone panels */
body.lux-login-page .lux-login-visual {
  background: var(--a-surface);
  border-inline-end: 1px solid var(--a-line);
}

body.lux-login-page .lux-login-form-panel {
  background: var(--a-surface);
}

/* ─────────────────────────────────────────────────────────────────
   Restraint.
   The dark original leaned on colour for hierarchy: a violet badge on
   the left panel, a blue badge on the right, blue/violet gradient icon
   tiles. Three hues on one screen. Apple's rule is the opposite —
   neutral surfaces, a monochrome interface, and a single accent that
   belongs to the primary action and the focus ring alone.
   ───────────────────────────────────────────────────────────────── */

body.lux-login-page .lux-login-version,
body.lux-login-page .lux-login-visual__badge,
body.lux-login-page .lux-rs-visual .lux-login-visual__badge {
  color: var(--a-muted);
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Feature rows: a hairline list, not filled grey boxes */
body.lux-login-page .lux-login-visual__point {
  background: transparent;
  border: 1px solid var(--a-line);
  color: var(--a-text);
  font-weight: 400;
}

/* Icon tiles: monochrome, flat */
body.lux-login-page .lux-login-visual__point svg {
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
  color: var(--a-muted);
}

body.lux-login-page .lux-login-visual h2 {
  color: var(--a-text);
}

body.lux-login-page .lux-login-visual p {
  color: var(--a-muted);
}

/* Labels carry the "where am I typing" signal — full contrast, not grey */
body.lux-login-page .lux-field label {
  color: var(--a-text);
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

/* The field itself: filled, bordered, unmistakably a control */
body.lux-login-page .lux-field-control {
  min-height: 52px;
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
  border-radius: 12px;
  box-shadow: none;
}

body.lux-login-page .lux-field-control:hover {
  border-color: var(--a-muted);
}

body.lux-login-page .lux-field-control:focus-within {
  background: var(--a-surface);
  border-color: var(--a-blue);
  box-shadow: 0 0 0 4px var(--a-blue-bg);
}

body.lux-login-page .lux-field input[type="text"],
body.lux-login-page .lux-field input[type="password"],
body.lux-login-page .lux-field input[type="email"] {
  height: 50px;
  padding: 0 1rem;
  font-size: 1rem;
  color: var(--a-text);
}

body.lux-login-page .lux-field input::placeholder {
  color: var(--a-faint);
}

/* Room to breathe between fields */
body.lux-login-page .lux-login-form {
  gap: 1.15rem;
}

/* Eye toggle sits inside the control, muted until used */
body.lux-login-page .lux-field-toggle {
  color: var(--a-faint);
}

body.lux-login-page .lux-field-toggle:hover,
body.lux-login-page .lux-field-toggle:focus-visible {
  color: var(--a-text);
  background: var(--a-line-soft);
}

body.lux-login-page .lux-field-toggle[aria-pressed="true"] {
  color: var(--a-blue);
}

/* Submit: match the field height so the column reads as one rhythm */
body.lux-login-page .lux-submit {
  height: 52px;
  border-radius: 12px;
  font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────────
   Customer screen — lookup form.
   ───────────────────────────────────────────────────────────────── */

/* Secondary button inherits `color: #fff` from .lux-submit; once its
   background turned white the label vanished. */
body.lux-login-page .lux-submit--ghost {
  color: var(--a-text) !important;
  font-weight: 500;
}

body.lux-login-page .lux-submit--ghost:hover {
  background: var(--a-surface-2) !important;
  border-color: var(--a-muted) !important;
}

/* Job-sheet / invoice picker → a real segmented control:
   grey track, white raised pill for the active choice. */
body.lux-login-page .lux-rs-type-tabs {
  gap: 0;
  padding: 3px;
  border-radius: 12px;
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
}

body.lux-login-page .lux-rs-type-tab {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--a-muted);
  font-weight: 500;
  box-shadow: none;
}

body.lux-login-page .lux-rs-type-tab:hover:not(.is-active) {
  background: transparent;
  border-color: transparent;
  color: var(--a-text);
}

body.lux-login-page .lux-rs-type-tab.is-active {
  background: var(--a-surface);
  border-color: var(--a-line);
  color: var(--a-text);
  box-shadow: 0 1px 3px var(--a-shadow);
}

/* Quick lookup: a distinct panel, not a loose add-on */
body.lux-login-page .lux-rs-quick-lookup {
  margin-top: 1.35rem;
  padding: 0;
  border-top: 1px solid var(--a-line);
}

body.lux-login-page .lux-rs-quick-lookup > summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0 0;
  font-weight: 500;
  color: var(--a-blue);
}

body.lux-login-page .lux-rs-quick-lookup > summary:hover {
  color: var(--a-blue-hi);
}

body.lux-login-page .lux-rs-quick-lookup > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

body.lux-login-page .lux-rs-quick-lookup[open] > summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

body.lux-login-page .lux-rs-form--nested {
  margin-top: 0.9rem;
  padding: 1.1rem;
  border-radius: 14px;
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
}

/* Fields inside the nested panel sit on grey — flip them to white */
body.lux-login-page .lux-rs-form--nested .lux-field-control {
  background: var(--a-surface);
}

body.lux-login-page .lux-rs-field-hint {
  color: var(--a-muted);
}

/* Same white-on-white trap as the ghost button: this hover kept `color: #fff`
   while its background became a pale blue tint. */
body.lux-login-page .lux-lang a:hover {
  color: var(--a-blue) !important;
}

/* Device / invoice tiles: flat surface reads cleaner than the grey→white
   gradient the dark original's gradient tokenised into */
body.lux-login-page .lux-rs-tile {
  background: var(--a-surface);
  border: 1px solid var(--a-line);
}

body.lux-login-page .lux-rs-card {
  background: var(--a-surface);
  box-shadow: 0 8px 30px var(--a-shadow);
}

/* Decorative colour in the results is turned off; colour that carries
   meaning — pass/fail badges, the device's status accent — is kept. */
body.lux-login-page .lux-rs-stat__icon,
body.lux-login-page .lux-rs-comment-avatar,
body.lux-login-page .lux-rs-comment--status .lux-rs-comment-avatar {
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
  color: var(--a-muted);
}

body.lux-login-page .lux-rs-section h3 .lux-rs-h-dot {
  background: var(--a-line);
}

/* Sits on a solid blue chip — it must stay white in both themes, not
   follow the surface token (which goes dark at night). */
body.lux-login-page .lux-rs-portal-avatar-edit {
  color: #ffffff;
}

body.lux-login-page .lux-rs-status-pill {
  color: var(--a-text);
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
}

/* ─────────────────────────────────────────────────────────────────
   Language FAB.
   Its stylesheet is shared with the dark marketing landing page, so it
   is re-skinned here (scoped to the auth body) rather than tokenised —
   tokenising it would leave the landing page with undefined variables.
   ───────────────────────────────────────────────────────────────── */

body.lux-login-page .lux-lang-fab-btn {
  background: var(--a-blue);
  border: 1px solid transparent;
  color: #ffffff;
  box-shadow: 0 6px 20px var(--a-shadow);
}

body.lux-login-page .lux-lang-fab-btn:hover {
  background: var(--a-blue-hi);
}

body.lux-login-page .lux-lang-fab-menu {
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  box-shadow: 0 12px 32px var(--a-shadow);
}

body.lux-login-page .lux-lang-fab-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--a-text);
  box-shadow: none;
}

body.lux-login-page .lux-lang-fab-item:hover {
  background: var(--a-surface-2);
  border-color: var(--a-line);
  color: var(--a-text);
}

body.lux-login-page .lux-lang-fab-item.is-active {
  background: var(--a-blue-bg);
  border-color: var(--a-blue-bd);
  color: var(--a-on-blue);
}

body.lux-login-page .lux-lang-fab-code {
  color: var(--a-muted);
}
/* ===== END lux-auth-theme.css ===== */
