/* ============================================================================
   LUXING AUTH — Stylesheet dédié pages /login + /register + /password
   ============================================================================
   Scope : body.lx-auth-page (ajouté via classe sur layout).
   Layout : split-screen 50/50 desktop, stack mobile.
   Cohérent avec landing.css : palette navy/gold/ivory, font Inter.
   ============================================================================ */

body.lx-auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #FDFCFA;
    margin: 0;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Masque navbar dashboard global + footers sur les pages auth.
   Khalid 14/05/2026 : on ne montre QUE le split-screen pour login/register,
   pas le footer public (lxp-footer). Cookie banner reste OK (toujours utile). */
body.lx-auth-page .lx-navbar,
body.lx-auth-page .lx-footer-full,
body.lx-auth-page .lx-footer-mini,
body.lx-auth-page .lxp-footer { display: none !important; }
body.lx-auth-page .lx-main { padding: 0 !important; min-height: 100vh; }

/* ----------------------------------------------------------------------------
   SPLIT-SCREEN LAYOUT
   ----------------------------------------------------------------------------*/
.lx-auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: #FDFCFA;
}

@media (max-width: 960px) {
    .lx-auth-shell { grid-template-columns: 1fr; }
    .lx-auth-aside { display: none; }
}

/* ----------------------------------------------------------------------------
   PANNEAU GAUCHE (NAVY) — branding + promesse
   ----------------------------------------------------------------------------*/
.lx-auth-aside {
    position: relative;
    background: linear-gradient(135deg, var(--lx-navy, #0A1F44) 0%, #0f2a58 60%, #06122A 100%);
    color: #F5F2EA;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Décor : pattern grain + accent gold subtil */
.lx-auth-aside::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.lx-auth-aside::after {
    content: '';
    position: absolute;
    bottom: -160px;
    left: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.lx-auth-aside-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.lx-auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #F5F2EA;
    margin-bottom: 4rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.lx-auth-brand-link .lx-brand-beta {
    background: rgba(201, 169, 97, 0.18);
    color: var(--lx-gold, #C9A961);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lx-auth-aside-tagline {
    font-size: 0.78rem;
    color: rgba(201, 169, 97, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lx-auth-aside-headline {
    font-size: clamp(1.875rem, 1.5vw + 1.25rem, 2.75rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #F5F2EA;
    margin: 0 0 1.5rem;
    text-wrap: balance;
}
.lx-auth-aside-headline .lx-accent-gold { color: var(--lx-gold, #C9A961); }

.lx-auth-aside-pitch {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(245, 242, 234, 0.78);
    margin: 0 0 3rem;
    max-width: 400px;
}

.lx-auth-aside-quote {
    margin-top: auto;
    padding: 1.5rem;
    background: rgba(245, 242, 234, 0.05);
    border-left: 3px solid var(--lx-gold, #C9A961);
    border-radius: 0 12px 12px 0;
}
.lx-auth-aside-quote-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #F5F2EA;
    margin: 0 0 0.85rem;
}
.lx-auth-aside-quote-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: rgba(245, 242, 234, 0.7);
}
.lx-auth-aside-quote-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.2);
    color: var(--lx-gold, #C9A961);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
}
.lx-auth-aside-quote-author strong { color: #F5F2EA; font-weight: 700; }

.lx-auth-aside-trust {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: rgba(245, 242, 234, 0.6);
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------------------
   PANNEAU DROIT — formulaire
   ----------------------------------------------------------------------------*/
.lx-auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    overflow-y: auto;
}
.lx-auth-form-wrap {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

/* Header form */
.lx-auth-header {
    margin-bottom: 2.5rem;
}
.lx-auth-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lx-gold, #C9A961);
    margin-bottom: 0.75rem;
}
.lx-auth-title {
    font-size: clamp(1.625rem, 1.5vw + 1rem, 2.125rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--lx-navy, #0A1F44);
    margin: 0 0 0.5rem;
}
.lx-auth-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--lx-neutral-500, #6b7280);
    margin: 0;
}

/* Logo brand sur mobile (panel gauche caché) */
.lx-auth-mobile-brand {
    display: none;
    margin-bottom: 2rem;
}
@media (max-width: 960px) {
    .lx-auth-main { padding: 2rem 1.5rem 3rem; min-height: 100vh; justify-content: flex-start; }
    .lx-auth-mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--lx-navy, #0A1F44);
        text-decoration: none;
        margin-bottom: 2.5rem;
        padding-top: 1rem;
    }
    .lx-auth-mobile-brand .lx-brand-beta {
        background: rgba(201, 169, 97, 0.15);
        color: #a88a47;
        font-size: 0.6rem;
        font-weight: 700;
        padding: 0.15rem 0.5rem;
        border-radius: 999px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
}

/* ----------------------------------------------------------------------------
   FORM ELEMENTS — overrides cohérents landing
   ----------------------------------------------------------------------------*/
.lx-auth-form .lx-field {
    margin-bottom: 1.25rem;
}
.lx-auth-form .lx-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lx-navy, #0A1F44);
    margin-bottom: 0.45rem;
}

.lx-auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.lx-auth-input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
    display: inline-flex;
}
.lx-auth-input-icon svg { width: 18px; height: 18px; }

.lx-auth-form .lx-input,
.lx-auth-form input[type="email"],
.lx-auth-form input[type="text"],
.lx-auth-form input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a1a1a;
    background: var(--lx-neutral-0, #ffffff);
    transition: border-color 180ms ease, box-shadow 180ms ease;
    -webkit-appearance: none;
    box-shadow: none;
}
.lx-auth-form .lx-input::placeholder { color: #9ca3af; }
.lx-auth-form .lx-input:focus,
.lx-auth-form input:focus {
    outline: none;
    border-color: var(--lx-gold, #C9A961);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1);
}
.lx-auth-form .lx-input.is-invalid,
.lx-auth-form .is-invalid {
    border-color: var(--lx-danger-600, #dc2626);
    background: var(--lx-danger-50, #fef2f2);
}

/* Toggle password visibility */
.lx-auth-toggle-pwd {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    transition: color 150ms ease, background 150ms ease;
}
.lx-auth-toggle-pwd:hover { color: var(--lx-navy, #0A1F44); background: rgba(10, 31, 68, 0.06); }
.lx-auth-toggle-pwd svg { width: 18px; height: 18px; }

/* Inline errors */
.lx-auth-form .lx-field-error {
    display: block;
    font-size: 0.8rem;
    color: var(--lx-danger-600, #dc2626);
    margin-top: 0.4rem;
}

/* Row : remember + forgot */
.lx-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.lx-auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}
.lx-auth-checkbox input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--lx-navy, #0A1F44);
    cursor: pointer;
}
.lx-auth-link {
    font-size: 0.875rem;
    color: var(--lx-navy, #0A1F44);
    font-weight: 600;
    text-decoration: none;
    transition: color 150ms ease;
}
.lx-auth-link:hover { color: var(--lx-gold, #C9A961); }

/* Submit button (gold pill) */
.lx-auth-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--lx-gold, #C9A961) 0%, #b89653 100%);
    color: #06122A;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(201, 169, 97, 0.32);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    letter-spacing: -0.005em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.lx-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.42);
    filter: brightness(1.04);
}
.lx-auth-submit:active { transform: translateY(0); }

/* CGV checkbox custom alignment */
.lx-auth-cgv {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.5rem 0 1.5rem;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.45;
}
.lx-auth-cgv input[type="checkbox"] {
    width: 16px; height: 16px;
    margin-top: 2px;
    accent-color: var(--lx-navy, #0A1F44);
    flex-shrink: 0;
    cursor: pointer;
}
.lx-auth-cgv a { color: var(--lx-navy, #0A1F44); font-weight: 600; text-decoration: underline; }
.lx-auth-cgv a:hover { color: var(--lx-gold, #C9A961); }

/* Divider "ou" */
.lx-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.5rem 0;
    font-size: 0.8rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.lx-auth-divider::before,
.lx-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Footer link */
.lx-auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--lx-neutral-500, #6b7280);
    margin-top: 2rem;
}
.lx-auth-footer a {
    color: var(--lx-navy, #0A1F44);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 150ms ease;
}
.lx-auth-footer a:hover { border-bottom-color: var(--lx-gold, #C9A961); }

/* Alerts inline */
.lx-auth-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.lx-auth-alert.is-danger {
    background: var(--lx-danger-50, #fef2f2);
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.lx-auth-alert.is-warning {
    background: var(--lx-warning-50, #fffbeb);
    border: 1px solid #fcd34d;
    color: #92400e;
}
.lx-auth-alert.is-success {
    background: var(--lx-success-50, #ecfdf5);
    border: 1px solid #6ee7b7;
    color: #065f46;
}
.lx-auth-alert.is-info {
    background: var(--lx-info-50, #eff6ff);
    border: 1px solid #93c5fd;
    color: #1e40af;
}
/* Info card (verify-notice "Vous n'avez pas reçu l'email ?") */
.lx-auth-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.lx-auth-info-card-title {
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.lx-auth-info-card-title svg {
    width: 18px;
    height: 18px;
    color: #0ea5e9;
    flex-shrink: 0;
}
.lx-auth-info-card-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
}
.lx-auth-info-card-list li {
    margin-bottom: 0.25rem;
}
.lx-auth-alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
}

/* Back-to-home discreet link */
.lx-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(245, 242, 234, 0.55);
    text-decoration: none;
    margin-top: 2rem;
    transition: color 150ms ease;
}
.lx-auth-aside .lx-auth-back:hover { color: var(--lx-gold, #C9A961); }

/* Reset password page : centered card layout (no aside) */
.lx-auth-shell--centered {
    grid-template-columns: 1fr !important;
    align-items: center;
    justify-items: center;
    background: linear-gradient(180deg, #FDFCFA 0%, #f5f2ea 100%);
}
.lx-auth-shell--centered .lx-auth-main {
    max-width: 520px;
    width: 100%;
    padding: 2rem 1.5rem 3rem;
}
.lx-auth-shell--centered .lx-auth-form-wrap {
    background: var(--lx-neutral-0, #fff);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -20px rgba(10, 31, 68, 0.12);
    border: 1px solid rgba(10, 31, 68, 0.05);
}
