/* ============================================================
   Pro-Voyance.fr — Page Connexion / Inscription
   Prefixe : cx-
   ============================================================ */

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

:root {
    --bg-deep: #0f0c1a;
    --bg-surface: #1a1626;
    --accent-glow: #b983ff;
    --accent-gold: #d4af37;
    --text-main: #ffffff;
    --text-secondary: #b3b0bc;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-hover: rgba(255, 255, 255, 0.08);
}

/* --- BASE --- */
body {
    font-family: 'Manrope', 'Lato', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.03em;
}

a { transition: all 0.3s ease; }

/* --- NAVBAR (override pour cohérence page cosmique) --- */
.navbar {
    position: fixed !important;
    top: 0; left: 0; width: 100%;
    z-index: 1050;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(15, 12, 26, 0.95), transparent) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 12, 26, 0.98) !important;
    border-bottom-color: var(--glass-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--text-main) !important;
    letter-spacing: 0.05em;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}

.navbar-toggler {
    border: none;
    color: white;
    box-shadow: none !important;
}

.nav-btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main) !important;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-btn-glass:hover {
    background: var(--glass-hover);
    border-color: var(--accent-glow);
    box-shadow: 0 0 15px rgba(185, 131, 255, 0.2);
}

/* --- NEBULA (fond animé) --- */
.cx-nebula-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cx-nebula {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: cxBreathe 12s infinite alternate ease-in-out;
}

.cx-nebula-1 { top: -10%; left: -10%; background: #5b247a; }
.cx-nebula-2 { bottom: -10%; right: -15%; background: #2a2a72; opacity: 0.25; }

@keyframes cxBreathe {
    0%   { transform: scale(1);    opacity: 0.30; }
    100% { transform: scale(1.15); opacity: 0.45; }
}

/* --- PAGE LAYOUT --- */
.cx-page {
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

.cx-row {
    padding-top: 7rem;
    padding-bottom: 4rem;
    min-height: 100vh;
}

/* --- MARKETING COLUMN (gauche) --- */
.cx-marketing-inner {
    padding-right: 2rem;
}

.cx-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(185, 131, 255, 0.2), rgba(212, 175, 55, 0.1));
    color: var(--accent-gold);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.25);
    margin-bottom: 1.5rem;
}

.cx-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.cx-gradient-text {
    background: linear-gradient(135deg, #b39ddb, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cx-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 2rem;
}

/* Liste avantages */
.cx-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
}

.cx-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.cx-benefits li i {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Stats sociales */
.cx-stats {
    display: flex;
    gap: 2.5rem;
}

.cx-stat {
    display: flex;
    flex-direction: column;
}

.cx-stat-number {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.cx-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* --- FORM CARD (droite) --- */
.cx-form-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.cx-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cx-form-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.cx-form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Champs */
.cx-field {
    margin-bottom: 1.25rem;
}

.cx-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cx-field label i {
    margin-right: 6px;
    color: var(--accent-glow);
    font-size: 0.8rem;
}

.cx-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Manrope', 'Lato', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.cx-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.cx-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-glow);
    box-shadow: 0 0 15px rgba(185, 131, 255, 0.15);
}

/* Options (mot de passe oublié) */
.cx-form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.cx-forgot-link {
    color: var(--text-secondary);
    font-size: 0.88rem;
    text-decoration: none;
}

.cx-forgot-link:hover {
    color: var(--accent-glow);
}

/* Bouton submit */
.cx-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--text-main);
    color: var(--bg-deep);
    border: none;
    border-radius: 14px;
    padding: 1rem 2rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cx-btn-submit:hover {
    background: var(--accent-gold);
    color: var(--bg-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.cx-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alerte erreur */
.cx-alert {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f28b96;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Footer formulaire */
.cx-form-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1.75rem 0 1.25rem;
}

.cx-form-footer {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.cx-form-footer a:hover {
    color: var(--accent-gold);
}

/* --- CTA INSCRIPTION (bas de formulaire) --- */
.cx-register-cta {
    text-align: center;
}

.cx-register-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.cx-btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
    color: var(--accent-glow);
    border: 1px solid rgba(185, 131, 255, 0.4);
    border-radius: 14px;
    padding: 0.85rem 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cx-btn-register:hover {
    background: rgba(185, 131, 255, 0.1);
    border-color: var(--accent-glow);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(185, 131, 255, 0.2);
}

/* --- MODAL MOT DE PASSE OUBLIÉ --- */
.cx-modal {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.cx-modal-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 1.5rem;
}

.cx-modal-header .modal-title {
    font-family: 'Cinzel', serif;
    color: var(--text-main);
    font-size: 1.1rem;
}

.cx-modal-body {
    padding: 1.75rem 1.5rem;
}

.cx-modal-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cx-alert-success {
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #6fd98a;
}

/* --- FOOTER (override dark) --- */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 2rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-glow);
}

footer h5 {
    font-family: 'Cinzel', serif;
}

footer hr {
    border-color: var(--glass-border) !important;
    opacity: 0.5;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .cx-row {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    .cx-marketing-inner {
        padding-right: 0;
        text-align: center;
        margin-bottom: 3rem;
    }

    .cx-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .cx-benefits {
        display: inline-block;
        text-align: left;
    }

    .cx-stats {
        justify-content: center;
    }

    .cx-form-card {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .cx-row {
        padding-top: 5rem;
    }

    .cx-form-card {
        padding: 1.75rem 1.5rem;
        border-radius: 18px;
    }

    .cx-title {
        font-size: 1.75rem;
    }

    .cx-stats {
        gap: 1.5rem;
    }

    .cx-stat-number {
        font-size: 1.3rem;
    }
}
