/* =========================================================
   Power Wash Recovery — wp-login.php custom styling
   ========================================================= */

body.login {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Container */
body.login div#login {
    padding: 28px 0 20px;
    width: 380px;
}

/* ── Logo / brand ── */
body.login h1 a {
    /* If no company logo, show the site name as text */
    background-image: none !important;
    text-indent: 0 !important;
    color: #f8fafc !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 0 0 8px !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

body.login h1 a:hover,
body.login h1 a:focus {
    color: #93c5fd !important;
    box-shadow: none !important;
}

/* Subtitle strip */
body.login h1 {
    margin-bottom: 0;
}

/* ── Login card ── */
body.login form {
    background: #ffffff;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.2) !important;
    padding: 32px 36px !important;
    margin-top: 12px !important;
}

body.login form .input,
body.login form input[type="text"],
body.login form input[type="password"],
body.login form input[type="email"] {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    color: #0f172a !important;
    font-size: 15px !important;
    padding: 11px 14px !important;
    height: auto !important;
    line-height: 1.5 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-shadow: none !important;
    margin-top: 4px !important;
}

body.login form .input:focus,
body.login form input[type="text"]:focus,
body.login form input[type="password"]:focus,
body.login form input[type="email"]:focus {
    background: #fff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.14) !important;
    outline: none !important;
    color: #0f172a !important;
}

body.login form label {
    color: #374151;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ── Submit button ── */
body.login .wp-core-ui .button-primary,
body.login .wp-core-ui .button-primary:visited {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: #1d4ed8 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    height: 46px !important;
    letter-spacing: 0.3px !important;
    padding: 0 24px !important;
    text-shadow: none !important;
    box-shadow: 0 3px 10px rgba(37,99,235,0.35) !important;
    transition: all 0.2s !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-top: 8px !important;
}

body.login .wp-core-ui .button-primary:hover,
body.login .wp-core-ui .button-primary:focus {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    border-color: #1e40af !important;
    box-shadow: 0 5px 16px rgba(37,99,235,0.45) !important;
    color: #fff !important;
}

/* ── Error and message boxes ── */
body.login #login_error {
    background: #fef2f2;
    border-left: 4px solid #ef4444 !important;
    border-radius: 10px;
    color: #991b1b;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px 16px;
    box-shadow: none;
}

body.login .message,
body.login .success {
    background: #eff6ff;
    border-left: 4px solid #2563eb !important;
    border-radius: 10px;
    color: #1e40af;
    padding: 12px 16px;
    font-size: 14px;
}

/* ── Remember me ── */
body.login .forgetmenot {
    display: flex;
    align-items: center;
    gap: 6px;
    float: none;
    margin-bottom: 12px;
}

body.login .forgetmenot label {
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

body.login .forgetmenot input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    margin: 0;
}

/* ── Submit row: hide the float layout ── */
body.login .submit {
    padding: 0 !important;
    margin-top: 4px;
}

/* ── Footer links ── */
body.login #nav,
body.login #backtoblog {
    text-align: center;
    background: transparent;
    border: none;
    padding: 8px 0;
}

body.login #nav a,
body.login #backtoblog a {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #f1f5f9;
    text-decoration: none;
}

/* ── Privacy link ── */
body.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 4px;
}

body.login .privacy-policy-page-link a {
    color: #64748b;
    font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 420px) {
    body.login div#login {
        width: 96vw;
        padding: 16px 0;
    }
    body.login form {
        padding: 24px 20px !important;
    }
}
