/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{

    width:100%;
    height:100%;

    font-family:'Poppins',sans-serif;

    overflow:hidden;

}

/* ==========================================
   FOND
========================================== */

body{

    display:flex;

    justify-content:center;

    align-items:center;

    background:#070707;

    color:white;

    position:relative;

}

/* ==========================================
   HALOS LUMINEUX
========================================== */

.bg-light{

    position:absolute;

    border-radius:50%;

    filter:blur(150px);

    opacity:.35;

    pointer-events:none;

}

.light-1{

    width:450px;
    height:450px;

    background:#0f8a4d;

    top:-180px;
    left:-150px;

}

.light-2{

    width:500px;
    height:500px;

    background:#17b86d;

    bottom:-220px;
    right:-180px;

}

/* ==========================================
   CARTE
========================================== */

.login-card{

    position:relative;

    z-index:2;

    width:430px;

    max-width:90%;

    padding:45px;

    border-radius:20px;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(15px);

    -webkit-backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,.12);

    box-shadow:0 0 40px rgba(0,0,0,.35);

    text-align:center;

}

/* ==========================================
   LOGO
========================================== */

.logo{

    margin-bottom:25px;

}

.logo img{

    width:180px;

    height:auto;

}

/* ==========================================
   TITRES
========================================== */

.login-card h1{

    font-size:2rem;

    margin-bottom:10px;

}

.subtitle{

    color:#d0d0d0;

    margin-bottom:35px;

    font-size:15px;

}

/* ==========================================
   BOUTONS
========================================== */

.buttons{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.btn{

    padding:14px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    background:#0f8a4d;

    color:white;

    font-size:16px;

    font-weight:600;

    transition:.3s;

}

.btn:hover{

    background:#17b86d;

    transform:translateY(-2px);

    box-shadow:0 0 18px rgba(23,184,109,.45);

}

/* ==========================================
   FORMULAIRE
========================================== */

.login-form{

    display:none;

    flex-direction:column;

    gap:15px;

    margin-top:30px;

    animation:fadeIn .35s ease;

}

.login-form.show{

    display:flex;

}

.login-form input{

    width:100%;

    padding:14px;

    border:none;

    border-radius:10px;

    outline:none;

    font-size:15px;

    background:rgba(255,255,255,.10);

    color:white;

    border:1px solid rgba(255,255,255,.12);

}

.login-form input::placeholder{

    color:#bdbdbd;

}

.btn-login{

    background:#18a75c;

}

.btn-login:hover{

    background:#22cb72;

}

/* ==========================================
   MESSAGE D'ERREUR
========================================== */

#errorMessage{

    color:#ff6b6b;

    font-size:14px;

    min-height:20px;

}

/* ==========================================
   ANIMATION
========================================== */

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(-10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width:600px){

    .login-card{

        padding:30px;

    }

    .logo img{

        width:150px;

    }

    .login-card h1{

        font-size:1.7rem;

    }

    .subtitle{

        font-size:14px;

    }

}