* {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    
}

html, body{
    height: 100%;
    margin: 0;
}

body{
    background: linear-gradient(to top, #c3f6ff , #8ab7bd);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}
form {
    width: 60vw;
    background: rgba(66, 129, 130, 0.55);
    padding: 30px 40px;
    box-sizing: border-box;
    border-radius: 12px;
    margin: 50px auto 0px auto;
}

h1 {
    font-size: 40px;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.774);
    text-align: center;
    margin-top: 0;
    display: flex;
    flex-direction: row;
    align-items: first baseline;
    justify-content: center;
}


h1 span {
    color: rgb(17, 98, 110);
    font-size: 67px;
    margin-top: 0;
}

.input {
    background-color: rgba(219, 255, 245, 0.624);
    padding: 10px 10px;
    margin: 15px 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0px 10px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
}/*pour enlever la couleur de sélection automatique de Google*/


.row {
    display: flex;
    flex-direction: row;
}

.message-success {
    color: #89ee84;
    text-align: center;
    font-weight: bold;
    margin: 5vw 0;
}

.message-error {
    color: #e74c3c;
    text-align: center;
    font-weight: bold;
    margin: 5vw 0;
}

input {
    width: 100%;
    border: none;
    background: none;
    outline: none;
    font-size: 13px;

}

.input img {
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    display: flex;
    align-self: flex-end;
}


.input img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.mdpTexte {
    display: flex;
    flex-direction: row;
}


button.bouton {
    width: 100%;
    background-color: rgb(17, 98, 110);
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    color: white;
    font-size: 15px;
    cursor: pointer;
    margin-top: 15px;
}

button.bouton:hover {
    opacity: 70%;
}

.msg {
    font-size: 12px;
    margin-top: 5px;
    padding-left: 4px;

}

a.btn {
    display: inline-block;
    margin-top: 15px;
    color: rgb(17, 98, 110);
    text-decoration: none;
}

.connexion,
.inscription,
.oubli {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-self: center;
    text-align: center;

}

a.btn:hover {
    text-decoration: underline;
}



.criteres {
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 13px;
}

.criteres p {
    margin: 4px 0;
    color: rgb(206, 10, 10);
    transition: color 0.2s;

}

.criteres p.ok {
    color: #8fff8b;
}

.consignes_mdp {
    color: black;
    font-size: 20px;
}

@media screen and (max-width: 640px) {
    form {
        width: 90vw; /* Plus large sur mobile pour utiliser l'espace */
        padding: 20px 15px; /* Padding réduit */
        margin: 20px auto; /* Marge réduite */
        border-radius: 16px; /* Coins légèrement plus arrondis */
    }

    h1 {
        font-size: 32px; /* Taille réduite */
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    h1 span {
        font-size: 48px; /* Taille réduite proportionnellement */
        display: block; /* Passe sur une nouvelle ligne si besoin */
        line-height: 1.2;
    }

    .input {
        padding: 12px 12px; /* Padding légèrement augmenté pour le confort tactile */
        margin: 12px 0;
    }

    input {
        font-size: 16px; /* Taille minimum pour éviter le zoom automatique sur iOS */
        padding: 4px 0; /* Un peu d'espace pour le confort tactile */
    }

    .input img {
        height: 24px; /* Plus grand pour le tactile */
        padding: 4px; /* Zone tactile agrandie */
    }

    button.bouton {
        padding: 14px 0; /* Plus grand pour le tactile */
        font-size: 16px;
        margin-top: 20px;
        border-radius: 10px;
    }

    .connexion,
    .inscription,
    .oubli {
        flex-direction: column; /* Passage en colonne sur mobile */
        gap: 5px;
        padding: 10px 0;
    }

    a.btn {
        margin-top: 8px;
        padding: 8px 0; /* Zone tactile agrandie */
        font-size: 15px;
    }

    .criteres {
        padding: 12px 12px;
        font-size: 14px; /* Légèrement plus grand pour la lisibilité */
    }

    .consignes_mdp {
        font-size: 18px;
    }

    .msg {
        font-size: 13px;
        padding: 4px; /* Zone tactile agrandie */
    }

    /* Amélioration des messages de validation */
    .message-success,
    .message-error {
        margin: 15px 0;
        padding: 10px; /* Ajout de padding pour le confort */
        font-size: 14px;
    }

    /* Éviter le scale qui pourrait causer des problèmes sur mobile */
    .input img:hover {
        transform: none; /* Désactivé sur mobile */
    }
}



