/* Image de fond */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

.background {
    background: url('../media/fond_connexion.png') no-repeat center center/cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;               /* le fond passe derrière */
    pointer-events: none;
}

.container {
    min-height: 100vh;         /* occupe toute la hauteur de l'écran */
    display: flex;             /* active le centrage flex */
    align-items: center;       /* centre verticalement */
    justify-content: center;   /* centre horizontalement */
    position: relative;
    z-index: 1;                /* au-dessus du background */
}

/* Conteneur du formulaire */
.login-container {
    position: relative;
    z-index: 2;
    width: 350px;
    margin: auto;
    /* top: 50%; */
    /* transform: translateY(-50%); */
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
}

.login-container form {
    margin-top: 0;
}

login-container .logo {
    text-align: center;
    margin-bottom: 0.75rem;
}

/* Logo */
.logo img {
    max-width: 340px;
    display: block;
    margin: 0 auto 5px; 
}

/* Titre */
.login-container h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Champs du formulaire */
.form-group {
    margin-bottom: 15px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

/* Bouton */
button {
    width: 100%;
    padding: 12px;
    background: #2c3e50;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #1a242f;
}