html,
body.login {
    min-height: 100%;
    background: #000 !important;
}

body.login {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    box-sizing: border-box;
}

body.login * {
    box-sizing: border-box;
}

body.login #login {
    width: min(380px, 100%);
    margin: 0 !important;
    padding: 0 !important;
}

body.login #login h1,
body.login #login_error,
body.login .message,
body.login .success,
body.login .notice,
body.login #nav,
body.login #backtoblog,
body.login .privacy-policy-page-link,
body.login .language-switcher,
body.login .forgetmenot,
body.login .user-pass-wrap .wp-hide-pw,
body.login .user-pass-wrap button.wp-hide-pw,
body.login .user-pass-wrap .button.wp-hide-pw,
body.login .user-pass-wrap .dashicons-visibility,
body.login .user-pass-wrap .dashicons-hidden {
    display: none !important;
}

body.login #loginform {
    display: grid;
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.login #loginform > p,
body.login #loginform .user-pass-wrap,
body.login #loginform .wp-pwd,
body.login #loginform p.submit {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body.login label[for="user_login"],
body.login label[for="user_pass"] {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.login #user_login,
body.login #user_pass {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 56px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid #7b2020 !important;
    border-radius: 9px !important;
    outline: 0 !important;
    background: #000 !important;
    color: #fff !important;
    font: 500 16px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    box-shadow: none !important;
    appearance: none;
}

body.login #user_login:focus,
body.login #user_pass:focus {
    border-color: #bd3030 !important;
    box-shadow: 0 0 0 2px rgba(189, 48, 48, 0.18) !important;
}

body.login.pqp-login-failed #user_login,
body.login.pqp-login-failed #user_pass {
    border-color: #dc3434 !important;
}

body.login #user_login:-webkit-autofill,
body.login #user_pass:-webkit-autofill,
body.login #user_login:-webkit-autofill:hover,
body.login #user_pass:-webkit-autofill:hover,
body.login #user_login:-webkit-autofill:focus,
body.login #user_pass:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    box-shadow: 0 0 0 1000px #000 inset !important;
    transition: background-color 9999s ease-out 0s;
}

body.login #user_pass::-ms-reveal,
body.login #user_pass::-ms-clear {
    display: none;
}

body.login #user_pass::-webkit-credentials-auto-fill-button,
body.login #user_pass::-webkit-contacts-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

body.login #wp-submit {
    display: block;
    width: 100% !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 1px solid #7b2020 !important;
    border-radius: 9px !important;
    background: #000 !important;
    color: #fff !important;
    font: 800 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    letter-spacing: .04em;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

body.login #wp-submit:hover,
body.login #wp-submit:focus {
    border-color: #bd3030 !important;
    background: #090909 !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px rgba(189, 48, 48, 0.18) !important;
}

@media (max-width: 480px) {
    body.login {
        padding: 18px;
    }

    body.login #user_login,
    body.login #user_pass {
        height: 52px !important;
    }
}
