/* Centrage total de la page */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000000; /* Fond noir Netflix */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* La boîte noire du formulaire */
.admin-box {
    width: 100%;
    max-width: 450px;
    padding: 60px;
    background-color: #0e0e0e;
    border-radius: 8px;
    box-sizing: border-box; /* Important pour que le padding ne déforme pas la boîte */
}

h1 {
    color: rgb(225, 225, 225);
    margin-bottom: 28px;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
}

/* Les cases de saisie */
input[type="text"], 
input[type="password"] {
    width: 100%;
    height: 50px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: white;
    padding: 0 20px;
    font-size: 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

/* Le bouton rouge */
button[type="submit"] {
    width: 100%;
    height: 50px;
    background-color: #ea0510;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background-color: #f6121d;
}

/* Style des messages d'alerte */
.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    color: white;
}

/* Erreur en Orange Netflix */
.alert.error {
    background-color: #e87c03;
}

/* Succès en Vert */
.alert.success {
    background-color: #2ecc71;
}

.switch-text {
    margin-top: 30px;
    color: #ffffff;
    text-align: center;
    font-weight: bold   ;
}
.switch-text a {
    color: rgb(255, 0, 0);
    text-decoration: none;
    
}

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

