/* =======================================
       CHARTE GRAPHIQUE (Mise à jour : GLASS & MESH)
       ======================================= */
    :root {
        /* --- NOUVELLE PALETTE (DA Glass) --- */
        --primary-hue1: 250; 
        --primary-color: hsl(250, 85%, 65%);
        --primary-mid: hsla(250, 85%, 65%, 0.5);
        --primary-light: hsla(250, 85%, 65%, 0.3);

        --secondary-color: #ffffff; 
        --secondary-attenuated: #f3f4f6; 
        
        --accent-color: hsl(220, 58%, 58%);
        --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
        
        /* FOND MESH GRADIENT (Remplace l'ancien radial) */
        --background-gradient: 
            radial-gradient(at 0% 0%, hsla(253,16%,93%,1) 0, transparent 50%), 
            radial-gradient(at 50% 0%, hsla(225,100%,94%,1) 0, transparent 50%), 
            radial-gradient(at 100% 0%, hsla(339,100%,96%,1) 0, transparent 50%);

        --text-color: #1E1E2E; 
        --gray-color: #6B7280; 
        
        /* STRUCTURE GLASS */
        --border-radius: 24px; /* Plus arrondi */
        --transition: all 0.2s ease-out;
        --shadow-color: rgba(0, 0, 0, 0.05);
        --font-family: 'Lexend', sans-serif;
        
        /* VARIABLES GLASSMORPHISM */
        --glass-bg: linear-gradient(135deg, rgb(245 245 245 / 30%) 0%, rgb(255 255 255 / 49%) 100%);
        --glass-border: 1px solid rgba(255, 255, 255, 0.6);
        --glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.6);

        /* Mapping couleurs feedback */
        --success-color: #10B981; 
        --warning-color: #F59E0B; 
        --danger-color: #EF4444; 
        --light-gray: var(--secondary-attenuated); 
        --line-color: var(--primary-light);
        --selected-dot-color: var(--accent-color); 

            --orb-1: #e0c3fc;
    --orb-2: #8ec5fc;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: var(--font-family);
        -webkit-font-smoothing: antialiased;
    }

    html, body {
        height: 100%;
    }

    body {
        background: var(--background-gradient);
        background-color: #F3F4F6; /* Fallback */
        background-attachment: fixed;
        color: var(--text-color);
        margin: 0;
        display: flex;
        flex-direction: column;
        position: relative;
        padding-top: 0px; 
    }

    /* On masque les anciennes bulles car le fond Mesh fait le travail */
    body::before {
        content: '';
        display: none;
    }
    body::after {
        content: '';
        display: none;
    }

    /* Contenu principal */
    .content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 40px;
        overflow-y: auto;
        position: relative;
    }
    .content-wrapper::before {
        content: '';
        display: none; /* On masque l'ancien blob ici aussi */
    }

    /* Titres */
    h1, h2, h3, h4, h5, h6 {
        color: var(--primary-color);
        margin-top: 0;
        margin-bottom: 20px;
        text-align: center;
        position: relative;
    }
    h1 {
        font-size: 32px;
        margin-bottom: 30px;
        font-weight: 800;
        /* Gradient Text pour le H1 */
        background: var(--accent-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
    }
    h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }
    h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    h4, h5, h6 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    /* Champs de formulaire + bouton */
    .form-container {
        max-width: 600px; 
        width: 90%;       
        margin: 0 auto;
        
        /* --- APPLICATION DU GLASSMORPHISM ICI --- */
        background: var(--glass-bg);
        border: var(--glass-border);
        box-shadow: var(--glass-shadow);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        /* ---------------------------------------- */
        
        border-radius: var(--border-radius);
        padding: 40px; /* Un peu plus d'espace interne */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .form-field {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 15px; /* Ajout d'un espacement naturel */
    }

    .form-field label {
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--text-color);
        font-size: 14px;
    }

    .input-text {
        border: 1px solid rgba(255,255,255,0.5); /* Bordure subtile */
        border-radius: 12px; /* --radius-lg réduit */
        padding: 14px;
        font-size: 16px;
        color: var(--text-color);
        outline: none;
        
        /* Input semi-transparent */
        background-color: rgba(255, 255, 255, 0.6);
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
        
        transition: var(--transition);
    }

    .input-text:focus {
        border-color: var(--primary-color);
        background-color: #fff;
        box-shadow: 0 0 0 3px var(--primary-light);
    }

    .btn-submit {
        background: var(--accent-gradient); /* Nouveau dégradé */
        color: var(--secondary-color);
        padding: 14px 24px;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: var(--transition);
        margin-top: 20px;
        box-shadow: 0 4px 15px rgba(108, 99, 255, 0.2);
        width: 100%; /* Plus moderne */
    }
    .btn-submit:hover {
        background: linear-gradient(135deg, var(--primary-mid) 0%, hsl(220, 58%, 58%, 0.8) 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
    }

    /* Messages d’erreur / confirmation */
    .msg-error {
        color: var(--danger-color);
        font-weight: 600;
        text-align: center;
        margin-top: 20px;
        background: rgba(239, 68, 68, 0.1);
        padding: 10px;
        border-radius: 8px;
        width: 100%;
    }

    /* Form */
    .login-form {
        width: 100%; /* Optimisé pour remplir le conteneur */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* ===============================
       Responsivité supplémentaire
       =============================== */
    @media (max-width: 768px) {
        .content-wrapper {
            padding: 20px;
        }
        .form-container {
            padding: 25px;
        }
        h1 {
            font-size: 24px;
        }
        h2 {
            font-size: 20px;
        }
        .login-form {
            width: 100%;
        }
        .btn-submit {
            font-size: 14px;
            padding: 12px 18px;
        }
    }

    @media (max-width: 480px) {
        h1 {
            font-size: 22px;
        }
        h2 {
            font-size: 18px;
        }
    }

    .bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

@media (max-width: 480px) {
    .bg-orb {
        width: 250px;
        height: 250px;
        opacity: 0.4;
    }
}

.orb-1 { width: 600px; height: 600px; background: var(--orb-1); top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: var(--orb-2); bottom: -50px; right: -100px; }