/*
 * CompassionU wp-login.php screens (password reset, deep-linked logins) —
 * styled to match the funnel's account screen. Fresh-visitor logins redirect
 * to /enroll; these styles cover the flows that still use the native screen.
 * Enqueued by cu_login_brand_styles() in functions.php.
 */

body.login {
    background: #f9f1d7;
    font-family: "Palatino", "Palatino Linotype", "Book Antiqua", serif;
    color: #4f2a10;
}

/* Maroon brand bar (markup from cu_login_brand_header()). */
.cu-login-bar {
    background: #750444;
    padding: 24px 16px;
    text-align: center;
}

.cu-login-bar img {
    max-height: 32px;
    width: auto;
    vertical-align: middle;
}

/* Default WordPress logo heading: gone. */
.login h1 {
    display: none;
}

#login {
    width: 400px;
    max-width: calc(100% - 32px);
    padding: 6% 0 0;
}

/* The form loses its white panel — fields sit on the cream page like the
   funnel's account screen. */
.login form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 20px;
}

.login label {
    font-size: 14px;
    line-height: 1.3;
    color: #4f2a10;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #fffdf7;
    border: 1px solid #d8c9b2;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 4px 0 16px;
    font-family: inherit;
    font-size: 16px;
    color: #4f2a10;
    box-shadow: none;
}

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

.login .button.wp-hide-pw {
    color: #751144;
}

.login form .forgetmenot label {
    font-size: 13px;
}

.login .submit .button-primary {
    width: 100%;
    float: none;
    background: #750444;
    border: none;
    border-radius: 8px;
    padding: 13px 24px;
    height: auto;
    font-family: "Palatino", "Palatino Linotype", "Book Antiqua", serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #fdf8ec;
    text-shadow: none;
    box-shadow: none;
    cursor: pointer;
}

.login .submit .button-primary:hover,
.login .submit .button-primary:focus {
    background: #5c0336;
    color: #fdf8ec;
}

/* Notices in the site's debossed box; errors read red. */
.login .message,
.login .success,
.login #login_error,
.login .notice {
    background: #faf0d7;
    border: none;
    border-left: none;
    border-radius: 8px;
    box-shadow: inset 0 0 6px rgba(89, 38, 11, 0.46);
    color: #4f2a10;
    font-family: inherit;
}

.login #login_error {
    color: #b3261e;
    font-weight: 600;
}

.login #login_error a {
    color: #b3261e;
}

/* Footer links under the form. */
.login #nav,
.login #backtoblog {
    text-align: center;
    font-size: 14px;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
    color: #751144;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #5c0336;
}

/* Password-strength meter colors clash with the palette — soften the box. */
.login .pw-weak {
    margin-bottom: 16px;
}
