body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #d9e9f5;
    font-family: Arial, sans-serif;
    overflow: hidden; /* Empêche le défilement */
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px; /* Largeur maximale du conteneur */
    padding: 20px; /* Espacement interne */
    box-sizing: border-box; /* Inclut le padding dans la largeur totale */
}

.logo {
    width: 100%;
    margin-top: -30%;
    margin-bottom: -30%; /* Espace entre le logo et le conteneur */
}

.login-container {
    background-color: #004d6a;
    border-radius: 10px;
    padding: 30px;
    width: 100%; /* Prend toute la largeur disponible */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-form {
    color: #fff;
}

h2 {
    margin: 0 0 20px; /* Espace en bas du titre */
    font-size: 22px;
    text-align: center;
}

.forgot {
    font-size: 0.875rem;
    color: #6786b1;
    transition: color 0.2s;
    border-radius: 0.375rem;
    outline: none;
}

.forgot:hover {
    color: #1F2937;
}

.forgot:focus {
    
    padding: 0.25rem;
    outline: none;
}


.input-group {
    margin-bottom: 15px;
}

.login-container input[type="email"],
.login-container input[type="password"] {
    width: 97%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    color: #004d6a;
}

.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus {
    outline: none;
    border:solid #28a745;
    box-shadow: 0 0 2px #3da4f1;
}

.login-container input[type="checkbox"]:checked {
    accent-color: #4CAF50; 
}
.stay-connected {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
}

.stay-connected input[type="checkbox"] {
    margin-right: 5px;
}

.login-container .button-group {
    display: flex;
    justify-content:flex-end; /* Centre le bouton */
    margin-top: 20px;
}

.btn-connexion {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-connexion:hover {
    background-color: #218838;
}

/* Styles responsifs pour les petits écrans */
@media (max-width: 480px) {
    .wrapper {
        max-width: 350px;
        padding:10px; /* Réduit le padding sur les petits écrans */
    }

    .login-container {
        padding: 20px; /* Réduit le padding interne */
    }

    .btn-connexion {
        width: 100%; /* Prend toute la largeur du conteneur */
    }
    input[type="email"],
    input[type="password"] {
        width: 97%;
    }
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #d9e9f5;
    font-family: Arial, sans-serif;
}

.logor {
    width: 100%;
    margin-top: -30%;
    margin-bottom: -40%; /* Espace entre le logo et le conteneur */
}

.wrapperr {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.register-container {
    background-color: #004d6a;
    border-radius: 10px;
    padding: 10px 20px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.register-form {
    color: #fff;
}

.register-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.register-container .input-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 15px;
}

input {
    width: 47%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    color: #004d6a;
}

.register-container input[type="email"],
.register-container input[type="password"],
.register-container input[type="text"],
.register-container input[type="tel"] {
    width: 100%;
}

.register-container input:focus {
    outline: none;
    border: solid #28a745;
    box-shadow: 0 0 2px #3da4f1;
}

.button-group {
    margin-top: 20px;
}

a
{
    text-decoration: none;
}

.btn-register {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.btn-register:hover {
    background-color: #218838;
}

.login-link {
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
}

.login-link a {
    color: #3da4f1;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .wrapper {
        max-width: 350px;
        padding:10px; /* Réduit le padding sur les petits écrans */
    }

    .register-container {
        padding: 20px; /* Réduit le padding interne */
    }

    .btn-register {
        width: 100%; /* Prend toute la largeur du conteneur */
    }
    input[type="email"],
    input[type="password"] {
        width: 97%;
    }
}

.error-messages {
    color: red;
    margin-bottom: 1em;
}

.error-message {
    color: red;
    font-size: 0.9em;
}