:root {
    --primary-color: #ff6900;
    --text-light: #ffffff;
    --input-bg-opacity: 0.1;
    --google-color: #db4437;
    --facebook-color: #4267b2;
}

@font-face {
    font-family: "Roboto";
    src: url(../font/Roboto-Regular.ttf);
}

@font-face {
    font-family: "Roboto-Bold";
    src: url(../font/Roboto-Bold.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(../img/fond_login.png) no-repeat center center;
    background-size: cover;
    /* CORRECTION : Assurer que le body prend 100% de la largeur du viewport */
    width: 100vw;
}

main {
    background: rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border-radius: 10px;
    padding: 30px 40px;
    width: 100%;
    max-width: 420px;
}

main h1 {
    font-size: 36px;
    text-align: center;
    font-family: "Roboto-Bold", sans-serif;
}

main .box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.box input {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, var(--input-bg-opacity));
    border: none;
    outline: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    font-size: 16px;
    color: var(--text-light);
    padding: 20px 45px 20px 20px;
    transition: background-color 0.2s;
}

.box input:focus {
    background: rgba(255, 255, 255, 0.2);
}

main input::placeholder {
    color: var(--primary-color);
    opacity: 0.8;
}

/* Section Se Souvenir de Moi / Mot de passe oublié */
.SouvenirMoi {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0 15px;
}

.SouvenirMoi label input {
    accent-color: var(--primary-color);
    margin-right: 5px;
}

.SouvenirMoi a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.SouvenirMoi a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Boutons de Connexion */
main .cobouton {
    width: 100%;
    height: 45px;
    background: var(--text-light);
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin: 15px 0px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

main .cobouton:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

/* Séparateur pour les boutons sociaux */
main .separator {
    text-align: center;
    margin: -5px 0 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Masque les labels pour l'accessibilité visuelle */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

main .boutonmultiple {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

main .cogoogle, main .cofacebook {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    height: 45px;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: var(--text-light);
    font-weight: bold;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

main .cogoogle {
    background: var(--google-color);
}

main .cogoogle:hover {
    background: #c33a2d;
}

main .cofacebook {
    background: var(--facebook-color);
}

main .cofacebook:hover {
    background: #365899;
}

main .cogoogle img, main .cofacebook img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    background-color: var(--text-light);
    padding: 2px;
    border-radius: 50%;
}

main .cofacebook img {
    width: 20px;
    height: 20px;
}


/* Réactivité */
@media (max-width: 600px) {
    main {
        padding: 30px 20px;
        margin: 20px;
    }
    main .boutonmultiple {
        flex-direction: column;
    }
    main .cogoogle, main .cofacebook {
        width: 100%;
    }
}