body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    height: 100vh;
    display: flex;
}

.ecran-split {
    display: flex;
    width: 100%;
}

.cote-visuel {
    flex: 1;
    background-color: #284196;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.cote-visuel h1 {
    font-size: 4rem;
    letter-spacing: 5px;
    margin: 0;
}

.cote-formulaire {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f7ff;
}

.boite-connexion {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 350px;
    text-align: center;
}

h2 {color: #284196; margin-bottom: 5px;}

.group-input {
    text-align: left;
    margin-top: 20px;
}

label {
    display: block;
    color: #284196;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e0e6f5;
    border-radius: 12px;
    box-sizing: border-box;
    outline: none;
}

input:focus {border-color: #284196;}

.bouton-connexion {
    width: 100%;
    padding: 15px;
    margin-top: 40px;
    background-color: #284196;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    text-decoration: none;
    box-sizing: border-box;
}

.bouton-creer-compte {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background-color: #0a73fd; /* Vert pour différencier */
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    text-decoration: none;
    box-sizing: border-box;
}

.bouton-connexion:hover {
    background-color: #1e3274;
}

.bouton-creer-compte:hover {
    background-color: #1713e7;
}

.logo-connexion {
    margin-bottom: 10px;
}
.lien-oublie {
    display: block;
    margin-top: 20px;
    color: #284196;
    text-decoration: none;
    font-size: 0.8rem;
}


/* --- ADAPTATION MOBILE (Écrans < 768px) --- */
@media (max-width: 768px) {
    /* On empile le visuel et le formulaire verticalement */
    .ecran-split {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .cote-visuel {
        padding: 30px 20px;
    }

    .cote-visuel h1 {
        font-size: 2.5rem; /* On réduit le gros Sanarca */
        letter-spacing: 2px;
    }

    .boite-connexion {
        width: 90%; /* Prend 90% de l'écran au lieu d'être bloqué à 350px */
        padding: 30px 20px; /* On réduit un peu les marges internes */
        margin: 20px auto;
    }
}