/* =========================================================
   STYLE_LOGIN.CSS
   Thème identique au formulaire ERP
========================================================= */


*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


:root{

    --bg:#dfe3e8;

    --card:#ffffff;

    --border:#b0b7c3;

    --text:#1f2937;

    --label:#374151;


    --green:#4caf50;

    --green-hover:#43a047;


    --shadow:0 10px 30px rgba(0,0,0,.15);

}



body{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;


    background:var(--bg);

    font-family:"Inter","Segoe UI",Arial,sans-serif;

    color:var(--text);

    padding:20px;

}



/*************************************************
   CARTE LOGIN
*************************************************/


.login-box{

    width:100%;

    max-width:420px;


    background:var(--card);

    border-radius:16px;

    padding:35px;


    box-shadow:var(--shadow);

}



/*************************************************
   TITRE
*************************************************/


h2{

    text-align:center;

    font-size:28px;

    font-weight:700;

    color:#2d3748;

    margin-bottom:35px;

}



h2::after{

    content:"";

    display:block;

    width:80px;

    height:4px;

    background:var(--green);

    margin:12px auto 0;

    border-radius:20px;

}



/*************************************************
   LABELS
*************************************************/


label{

    display:block;

    font-size:14px;

    font-weight:600;

    color:var(--label);

    margin-bottom:7px;

}



/*************************************************
   INPUTS
*************************************************/


input{

    width:100%;

    padding:13px 14px;

    margin-bottom:20px;


    border:1px solid var(--border);

    border-radius:10px;


    background:#fff;


    font-size:14px;

    font-family:inherit;


    transition:.25s;

}



input:hover{

    border-color:#888;

}



input:focus{

    outline:none;

    border-color:var(--green);

    box-shadow:0 0 0 4px rgba(76,175,80,.15);

}



/*************************************************
   BOUTON
*************************************************/


button{

    width:100%;


    padding:14px;


    border:none;

    border-radius:10px;


    background:var(--green);

    color:white;


    font-size:15px;

    font-weight:600;


    cursor:pointer;


    transition:.25s;

}



button:hover{

    background:var(--green-hover);

    transform:translateY(-2px);

    box-shadow:0 8px 20px rgba(0,0,0,.15);

}



/*************************************************
   MESSAGE ERREUR
*************************************************/


.message-error{

    background:rgba(220,53,69,.12);

    color:#b02a37;


    border:1px solid rgba(220,53,69,.3);


    padding:10px;

    border-radius:8px;


    margin-bottom:20px;


    text-align:center;

    font-size:13px;

}



/*************************************************
   MOBILE
*************************************************/


@media(max-width:600px){


    body{

        padding:12px;

    }


    .login-box{

        padding:25px;

        border-radius:12px;

    }


    h2{

        font-size:24px;

    }


}