/**
 * wp-login.php reskin - matches the front-page.css --fp-* theme (black/
 * near-black background, magenta secondary, white text/accent, Mulish
 * headings + Inter body) since wp-login.php never loads Elementor or any
 * of the theme's normal template files, so none of that styling reaches
 * it unless duplicated here. Values are hand-copied from front-page.css's
 * :root block rather than sharing the file directly - front-page.css
 * depends on markup (.hec-fp-*) that doesn't exist on the login screen.
 */
body.login {
    background-color: #000000;
    font-family: 'Inter', sans-serif;
}

body.login #login {
    width: 100%;
    max-width: 380px;
}

body.login h1 a {
    background-image: var(--hec-login-logo);
    background-size: contain;
    width: 100%;
    height: 84px;
    margin-bottom: 16px;
}

/**
 * Site Kit's Sign in with Google button renders as its own box directly
 * above #loginform (a sibling under #login, not literally inside the
 * <form> tag). This just centers that box in the column - Site Kit's own
 * wrapper id/class isn't available to target directly in this checkout
 * (the plugin's source is a partial/stale local copy vs. what's live),
 * so this keys off Google's own #container-div (confirmed from the live
 * page's rendered markup) via :has(), which matches regardless of how
 * deep Site Kit nests it.
 */
body.login #login > *:has(#container-div) {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

body.login form {
    background-color: #101010;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    box-shadow: none;
    padding: 26px 24px 24px;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="password"] {
    background-color: #000000;
    border: 1px solid #2a2a2a;
    color: #fafafa;
    border-radius: 6px;
    box-shadow: none;
}

body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
    border-color: #a502a8;
    box-shadow: 0 0 0 1px #a502a8;
}

body.login label {
    color: #fafafa;
    font-family: 'Inter', sans-serif;
}

body.login form .forgetmenot label {
    color: #cfcfcf;
}

body.login .wp-hide-pw .dashicons {
    color: #cfcfcf;
}

body.login .button-primary {
    background-color: #a502a8;
    border-color: #a502a8;
    color: #ffffff;
    border-radius: 6px;
    text-shadow: none;
    box-shadow: none;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
    background-color: #7a0180;
    border-color: #7a0180;
    color: #ffffff;
}

body.login #nav,
body.login #backtoblog {
    text-align: center;
}

body.login #nav a,
body.login #backtoblog a {
    color: #cfcfcf;
    font-family: 'Inter', sans-serif;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #a502a8;
}

body.login .message,
body.login #login_error {
    background-color: #101010;
    border-left: 4px solid #a502a8;
    color: #fafafa;
    border-radius: 4px;
}

body.login #login_error {
    border-left-color: #cc3333;
}
