/* === Fond général === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background-image injecté dynamiquement via <style> dans chaque page PHP */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;      /* min-height au lieu de height pour permettre le centrage flex */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* === Boîte de connexion === */
.login-container {
    background: rgba(0, 0, 0, 0.65);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    width: 90%;
    max-width: 420px;
    box-sizing: border-box;
}

/* === Titre === */
.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* === Labels === */
.login-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* === Champs === */
.login-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 22px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

/* === Bouton === */
.login-container button {
    display: block;
    margin: 0 auto;
    padding: 14px 28px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.login-container button:hover {
    background-color: #218838;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

/* === Message d'erreur === */
.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ffaaaa;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.error-box {
    background-color: rgba(255, 0, 0, 0.1);
    color: #c0392b;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

/* === Footer === */
footer {
    position: fixed;
    bottom: 12px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 1px 1px 3px #000;
}
