/*
 * Écran de connexion WordPress — charte CREM
 */

.login.crem-login {
    background-color: #FBF8F1;
    color: #333333;
}

.login.crem-login #login {
    width: 380px;
    padding: 8% 0 0;
}

.login.crem-login #login h1 a {
    width: 242px;
    height: 73px;
    margin: 0 auto 43px auto;
    background-color: #273B60;
    background-image: none;
    -webkit-mask: url("../../img/Logo-CREM.svg") center / contain no-repeat;
    mask: url("../../img/Logo-CREM.svg") center / contain no-repeat;
}

.login.crem-login form {
    margin-top: 0;
    padding: 40px 36px 32px 36px;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.login.crem-login #login form p.forgetmenot {
    float: none;
    margin-bottom: 13px;
}

.login.crem-login #login form p.submit {
    float: none;
    width: 100%;
    margin: 0;
}

.login.crem-login .button-primary {
    float: none !important;
}

.login.crem-login .reset-pass-submit {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login.crem-login label,
.login.crem-login .forgetmenot label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #273B60;
}

.login.crem-login .wp-pwd {
    position: relative;
}

.login.crem-login .wp-pwd .button.wp-hide-pw {
    top: 13px;
}

.login.crem-login #wp-submit,
.login.crem-login .wp-core-ui #wp-submit.button-primary {
    display: block;
    float: none !important;
    width: 100% !important;
    min-height: 50px;
    height: 50px;
    margin: 0;
    padding: 0 45px;
    background-color: #99B5CD !important;
    border: 0 !important;
    border-radius: 25px !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 50px;
    text-shadow: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.login.crem-login #wp-submit:hover,
.login.crem-login #wp-submit:focus,
.login.crem-login .wp-core-ui #wp-submit.button-primary:hover,
.login.crem-login .wp-core-ui #wp-submit.button-primary:focus {
    background-color: #273B60 !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.login.crem-login .reset-pass-submit .button.wp-generate-pw {
    display: block;
    float: none !important;
    width: 100% !important;
    min-height: 50px;
    height: 50px;
    margin: 0;
    padding: 0 45px;
    background-color: transparent !important;
    border: 1px solid #99B5CD !important;
    border-radius: 25px !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 48px;
    text-shadow: none !important;
    box-shadow: none !important;
    color: #99B5CD !important;
}

.login.crem-login .reset-pass-submit .button.wp-generate-pw:hover,
.login.crem-login .reset-pass-submit .button.wp-generate-pw:focus {
    background-color: #273B60 !important;
    border-color: #273B60 !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.login.crem-login input[type="text"],
.login.crem-login input[type="password"],
.login.crem-login input[type="email"] {
    width: 100%;
    height: 52px;
    margin: 8px 0 18px 0;
    padding: 0 18px;
    border: 1px solid #dedede;
    border-radius: 3px;
    background: #ffffff;
    font-size: 1rem;
    color: #333333;
    box-shadow: none;
    outline: none;
}

.login.crem-login input[type="text"]:focus,
.login.crem-login input[type="password"]:focus,
.login.crem-login input[type="email"]:focus {
    border-color: #273B60;
    box-shadow: none;
}

.login.crem-login .wp-core-ui .button-primary:focus {
    outline: 2px solid #273B60;
    outline-offset: 2px;
}

.login.crem-login .notice,
.login.crem-login .message,
.login.crem-login .success,
.login.crem-login #login_error {
    margin: 0 0 20px 0 !important;
    padding: 14px 18px !important;
    border: 1px solid #d4e3f0 !important;
    border-left: 1px solid #d4e3f0 !important;
    border-radius: 3px;
    box-shadow: none;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #5a6d8a;
    background: #f0f5fa;
}

.login.crem-login #login_error {
    color: #9b2c2c;
    background: #fdf0f0;
    border-color: #f5c6c6 !important;
}

.login.crem-login .success {
    color: #276749;
    background: #f0faf4;
    border-color: #c6f0d6 !important;
}

.login.crem-login #nav {
    padding: 0 8px;
    text-align: center;
}

.login.crem-login #nav a,
.login.crem-login .language-switcher label {
    color: #273B60;
    text-decoration: none;
}

.login.crem-login #nav a:hover {
    color: #99B5CD;
    text-decoration: underline;
}

.login.crem-login #backtoblog,
.login.crem-login .privacy-policy-page-link {
    display: none;
}

.login.crem-login .language-switcher {
    margin-top: 24px;
}

.login.crem-login .language-switcher select {
    border: 1px solid #dedede;
    border-radius: 3px;
    min-height: 40px;
    color: #273B60;
    background-color: #ffffff;
}

.login.crem-login .dashicons,
.login.crem-login .dashicons-visibility,
.login.crem-login .dashicons-hidden {
    color: #273B60;
}

@media screen and (max-width: 480px) {
    .login.crem-login #login {
        width: 92%;
        padding-top: 12%;
    }

    .login.crem-login form {
        padding: 28px 22px 24px 22px;
    }
}
