/* ===============================
   RESET GENERAL
================================ */

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

html,
body{
    min-height:100%;
}


/* ===============================
   FOND DE PAGE
================================ */

body{
    min-height:100vh;

    background:
        url("../images/fond-index.png")
        center center / cover no-repeat fixed;

    color:white;
}


/* ===============================
   VOILE SOMBRE SUR LE FOND
================================ */

.overlay{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,0.72);

    z-index:1;
}


/* ===============================
   CONTENEUR PRINCIPAL
================================ */

.container{
    position:relative;
    z-index:2;

    min-height:100vh;
    width:100%;
    padding:30px 15px;

    display:flex;
    justify-content:center;
    align-items:center;
}


/* ===============================
   CARTE DE CONNEXION
================================ */

.login-card{
    width:min(95%, 620px);

    padding:35px 35px 40px;

    text-align:center;

    background:rgba(10,10,10,0.55);

    border-radius:24px;

    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}


/* ===============================
   LOGOS
================================ */

.logos{
    display:flex;

    justify-content:center;
    align-items:center;

    flex-wrap:wrap;

    gap:clamp(20px,4vw,45px);

    margin-bottom:25px;

    transform:translateY(-10px);
}

.logos img{
    width:clamp(90px,16vw,145px);

    height:auto;

    object-fit:contain;

    background:transparent;

    padding:0;

    border:none;

    box-shadow:none;
}


/* ===============================
   TITRE ET TEXTE
================================ */

h1{
    font-size:clamp(2.2rem,6vw,4.4rem);

    margin-bottom:15px;

    text-transform:uppercase;

    letter-spacing:2px;
}

p{
    font-size:clamp(1rem,2vw,1.25rem);

    line-height:1.5;

    margin-bottom:28px;
}


/* ===============================
   FORMULAIRE
================================ */

.login-form{
    width:100%;

    max-width:470px;

    margin:0 auto;
}

.login-form input{
    width:100%;

    height:58px;

    margin-bottom:16px;

    padding:0 18px;

    font-size:18px;

    border-radius:14px;

    border:2px solid transparent;

    outline:none;
}

.login-form input:focus{
    border-color:#179b3a;
}


/* ===============================
   CHAMP MOT DE PASSE
================================ */

.password-container{
    position:relative;

    width:100%;

    height:58px;

    margin-bottom:16px;
}

.password-container input{
    width:100%;

    height:58px;

    margin:0;

    padding:0 55px 0 18px;

    font-size:18px;

    border-radius:14px;

    border:2px solid transparent;

    outline:none;
}

.toggle-password{
    position:absolute;

    top:0;
    right:0;

    width:55px;
    height:58px;

    border:none;

    background:transparent;

    display:flex;

    align-items:center;
    justify-content:center;

    cursor:pointer;

    color:#666;

    font-size:20px;
}

.toggle-password:hover{
    color:#179b3a;

    transform:none;
}


/* ===============================
   BOUTONS
================================ */

.buttons{
    display:flex;

    justify-content:center;
    align-items:center;

    flex-wrap:wrap;

    gap:14px;

    margin-top:8px;
}

button{
    width:170px;

    height:48px;

    border:none;

    border-radius:12px;

    font-size:16px;

    font-weight:bold;

    cursor:pointer;

    display:flex;

    align-items:center;
    justify-content:center;

    gap:9px;

    transition:0.25s;
}

button:hover{
    transform:scale(1.04);
}

.enter{
    background:#179b3a;

    color:white;
}

.enter:hover{
    background:#0f7b2d;
}

.exit{
    background:#c62828;

    color:white;
}

.exit:hover{
    background:#961f1f;
}

.icon{
    width:26px;

    height:26px;

    min-width:26px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:white;

    color:#179b3a;

    font-size:18px;

    font-weight:bold;
}

.exit .icon{
    color:#c62828;
}


/* ===============================
   VERSION GSM
================================ */

@media(max-width:600px){

    body{
        background-attachment:scroll;
    }

    .container{
        align-items:flex-start;

        padding-top:25px;
    }

    .login-card{
        padding:25px 18px 30px;

        border-radius:18px;
    }

    .logos{
        gap:18px;

        margin-bottom:18px;
    }

    .logos img{
        width:90px;
    }

    h1{
        font-size:2.25rem;
    }

    p{
        font-size:1rem;

        margin-bottom:22px;
    }

    .login-form input{
        height:56px;

        font-size:17px;
    }

    .password-container,
    .password-container input,
    .toggle-password{
        height:56px;
    }

    button{
        width:100%;

        max-width:260px;
    }
}


/* ===============================
   VERSION TABLETTE
================================ */

@media(min-width:601px) and (max-width:1024px){

    .login-card{
        width:min(90%, 650px);
    }

    .logos img{
        width:120px;
    }

    button{
        width:165px;
    }
}