/*
 * RowFuel Custom Login Page Styles
 * Matches the homepage top-bar (#8d2f04 orange) and overall brand
 */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body.login {
    font-family: 'Poppins', sans-serif;
    background-color: #8d2f04; /* matches homepage .top-bar */
    color: #000;
}

body.login div#login {
    width: 380px;
    padding: 8% 0 0;
    margin: auto;
}

/* Replace WordPress logo with RowFuel logo */
body.login h1 a {
    background-image: url('/wp-content/uploads/2025/11/cropped-cropped-FullLogo-e1764486766724-1.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    width: 280px;
    height: 90px;
    /* hide the WordPress logo text */
    text-indent: -9999px;
    overflow: hidden;
    display: block;
    margin: 0 auto 10px;
}

/* Login form container */
body.login div#login form#loginform,
body.login div#login form#registerform,
body.login div#login form#lostpasswordform {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    padding: 30px 28px 20px;
    margin-top: 20px;
}

/* Labels */
body.login div#login form label {
    color: #000;
    font-weight: 600;
    font-size: 14px;
}

/* Input fields — matches .searchbox input on homepage */
body.login div#login form .input {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border: 1px solid #C6C6C6;
    border-radius: 4px;
    padding: 8px 12px;
    background: #fff;
    color: #000;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.login div#login form .input:focus {
    border-color: #8d2f04;
    box-shadow: 0 0 0 2px rgba(141, 47, 4, 0.2);
    outline: none;
}

/* Submit button — matches .searchbox button on homepage (black bg, white text) */
body.login div#login form .button.button-primary {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    background: #000;
    border: none;
    border-radius: 4px;
    color: #fff;
    padding: 8px 24px;
    min-height: 44px;
    cursor: pointer;
    transition: background 0.2s ease;
    float: none;
    width: 100%;
    margin-top: 8px;
}

body.login div#login form .button.button-primary:hover {
    background: #333;
}

/* Links below the form */
body.login #login #nav a,
body.login #login #backtoblog a {
    color: #000;
    font-size: 13px;
    font-weight: 500;
}

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

/* Back to blog */
body.login #backtoblog {
    text-align: center;
}

/* "or register" link below the submit button */
body.login .login-register-link {
    text-align: center;
    margin: 12px 0 0;
    font-size: 14px;
    color: #000;
}
body.login .login-register-link a {
    color: #000;
    text-decoration: underline;
    font-weight: 700;
}
body.login .login-register-link a:hover {
    color: #8d2f04;
}

/* Navigation (Lost password | Register) */
body.login #nav {
    text-align: center;
    padding: 16px 0 0;
}

/* Messages (errors, success) */
body.login #login #login_error,
body.login #login .message {
    border-radius: 6px;
    border-left-width: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

body.login #login #login_error {
    background: #fdeeee;
    border-left-color: #d88e8e;
    color: #333;
}

body.login #login .message {
    background: #eaf7ef;
    border-left-color: #84c89a;
    color: #333;
}

/* Registration specific */
body.login #reg_passmail {
    color: #000;
    font-size: 13px;
}

/* Checkbox (Remember Me) */
body.login .forgetmenot label {
    color: #000;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 480px) {
    body.login div#login {
        width: auto;
        padding: 20px;
    }
}
