/* =========================================
   PAGE LOGIN
========================================= */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f5f3;

    color: #222;
}


body {
    min-height: 100vh;
}


/* =========================================
   CONTENEUR
========================================= */

.login-page {

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px 20px;

}


/* =========================================
   CARTE
========================================= */

.login-card {

    width: 100%;

    max-width: 420px;

    padding: 40px;

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 4px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.06);

}


/* =========================================
   HEADER
========================================= */

.login-header {

    text-align: center;

    margin-bottom: 32px;

}


.login-logo {

    width: 58px;
    height: 58px;

    margin: 0 auto 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #222;

    color: #fff;

    font-size: 21px;

    font-weight: 700;

    letter-spacing: -1px;

    border-radius: 3px;

}


.login-header h1 {

    margin: 0;

    font-size: 25px;

    font-weight: 600;

}


.login-header p {

    margin: 7px 0 0;

    color: #777;

    font-size: 14px;

}


/* =========================================
   ERREUR
========================================= */

.login-error {

    margin-bottom: 22px;

    padding: 12px 14px;

    border: 1px solid #e1bebe;

    border-radius: 3px;

    background: #fff6f6;

    color: #9b3030;

    font-size: 13px;

    line-height: 1.5;

}


/* =========================================
   FORMULAIRE
========================================= */

.login-form {

    width: 100%;

}


.login-form-group {

    margin-bottom: 20px;

}


.login-form-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;

}


.login-form-group input {

    width: 100%;

    height: 44px;

    padding: 0 12px;

    border: 1px solid #d8d8d8;

    border-radius: 3px;

    background: #fff;

    color: #222;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.login-form-group input::placeholder {

    color: #aaa;

}


.login-form-group input:focus {

    border-color: #222;

    box-shadow:
        0 0 0 2px rgba(34, 34, 34, 0.06);

}


/* =========================================
   BOUTON
========================================= */

.login-button {

    width: 100%;

    height: 45px;

    margin-top: 5px;

    padding: 0 20px;

    border: none;

    border-radius: 3px;

    background: #222;

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;

}


.login-button:hover {

    background: #000;

}


.login-button:active {

    transform: translateY(1px);

}


/* =========================================
   FOOTER
========================================= */

.login-footer {

    margin-top: 28px;

    padding-top: 20px;

    border-top: 1px solid #eee;

    text-align: center;

    color: #999;

    font-size: 12px;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .login-page {

        padding: 20px 15px;

    }


    .login-card {

        padding: 30px 22px;

        box-shadow: none;

    }


    .login-header {

        margin-bottom: 27px;

    }

}

/* =========================================
   CHAMP MOT DE PASSE
========================================= */

.password-input-wrapper {

    position: relative;

    width: 100%;

}


.password-input-wrapper input {

    padding-right: 45px;

}


.password-toggle {

    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    padding: 0;

    border: none;

    background: transparent;

    color: #777;

    cursor: pointer;

}


.password-toggle:hover {

    color: #222;

}


.password-toggle:focus {

    outline: none;

}


.eye-icon {

    font-size: 16px;

    line-height: 1;

}