/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Conteneur de connexion */
.login-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 85%;
    max-width: 600px;
    text-align: center;
}

/* Formulaire de connexion */
.login-form h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #00796b;
}

.login-form p {
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 90%; /* Réduction de la largeur des textbox */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px; /* Augmentation de la taille de la police */
    background: #f9f9f9;
    transition: border-color 0.3s, background 0.3s;
}

.input-group input:focus {
    border-color: #00b4db;
    background: #fff;
    outline: none;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: white;
    padding: 0 5px;
    color: #999;
    font-size: 14px;
    transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 0;
    left: 10px;
    font-size: 12px;
    color: #00796b;
}

.btn-login {
    background: #00796b;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    font-size: 16px;
}

.btn-login:hover {
    background: #004d40;
}

/* Mot de passe oublié */
.forgot-password {
    margin-top: 10px;
}

.forgot-password a {
    color: #00796b;
    text-decoration: none;
    font-size: 12px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 600px) {
    .login-container {
        padding: 15px;
    }

    .login-form h2 {
        font-size: 22px;
    }

    .login-form p {
        font-size: 14px; /* Ajustement de la taille de la police */
    }

    .input-group input {
        font-size: 16px; /* Taille de police constante pour lisibilité */
        padding: 6px;
        width: 85%; /* Largeur légèrement réduite pour les petits écrans */
    }

    .input-group label {
        font-size: 12px;
    }

    .btn-login {
        font-size: 14px;
    }

    .forgot-password a {
        font-size: 12px;
    }
}