/**
 * DE WP Login PHP Redesign - Custom Styles
 * Optimized version
 */

/* Define Roboto Condensed font face */
@font-face {
    font-family: 'Roboto Condensed';
    src: url('https://dailyevents.news/wp-content/uploads/fonts/RobotoCondensed-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Base styles */
body.login {
    background: #ffffff !important;
    font-family: 'Roboto Condensed', sans-serif !important;
}

body.login * {
    font-family: 'Roboto Condensed', sans-serif !important;
}

/* Hide elements */
body.login #nav,
body.login p#backtoblog,
body.login form#loginform label[for="user_login"],
body.login form#loginform label[for="user_pass"] {
    display: none !important;
}

/* Logo positioning */
body.login .wp-login-logo a {
    background: url('https://dailyevents.news/wp-content/uploads/2025/10/Daily-Events-Logo.png') center/contain no-repeat !important;
    width: 100px !important;
    height: 100px !important;
    text-indent: -9999px;
    display: block;
    margin: 0 auto;
    position: static !important;
    top: auto !important;
}

/* Form elements */
body.login form#loginform:before {
    content: "Login";
    display: block;
    text-align: left;
    font-size: 20px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 20px;
}

/* Input fields */
body.login form#loginform p:first-child input#user_login,
body.login form#loginform .user-pass-wrap input#user_pass.password-input {
    font-size: 16px !important;
    font-weight: 400 !important;
    height: 40px !important;
    line-height: 1 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    width: 100%;
    margin: 5px 0;
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #000000 !important;
}

/* Placeholders */
body.login #user_login::placeholder,
body.login #user_pass::placeholder {
    color: #666666 !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    opacity: 1 !important;
}

/* Checkbox - Completely fixed version */
body.login form#loginform input#rememberme {
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 20px !important;
    width: 20px !important;
    background: #ffffff !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    position: relative;
}

/* Remove WordPress default checkmark */
body.login form#loginform input#rememberme::before {
    display: none !important;
    content: "" !important;
}

/* Custom checkmark for checked state */
body.login form#loginform input#rememberme:checked {
    background: #000000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat !important;
    border-color: #000000 !important;
}

/* Password toggle icon */
body.login .dashicons,
body.login .dashicons-before:before,
body.login .wp-hide-pw .dashicons-visibility {
    font-family: dashicons !important;
    color: #000000 !important;
    font-size: 20px !important;
    line-height: 28px !important;
}

body.login .wp-hide-pw,
body.login .wp-hide-pw:focus,
body.login .wp-hide-pw:hover {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Submit button */
body.login form#loginform p.submit {
    display: block !important;
    clear: both !important;
    margin-top: 20px !important;
}

body.login form#loginform p.submit input#wp-submit {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin: 40px auto 0 !important;
    background: #000000 !important;
    border: none !important;
    border-radius: 0 !important;
    height: 40px !important;
    font-size: 14px !important;
    float: none !important;
}

body.login form#loginform p.submit input#wp-submit:hover {
    background: #333333 !important;
}

/* Forgot password section */
body.login form#loginform .forgetmenot {
    display: inline-block !important;
    margin-right: 15px !important;
    vertical-align: middle !important;
}

body.login form#loginform .forgetmenot + .custom-forgot-password {
    display: inline-block !important;
    font-size: 13px !important;
    vertical-align: middle !important;
    float: right !important;
    text-align: right !important;
    width: auto !important;
}

body.login form#loginform .custom-forgot-password {
    float: right !important;
    margin-left: auto !important;
    text-align: right !important;
}

body.login form#loginform .custom-forgot-password a {
    color: #2271b1 !important;
    text-align: right !important;
}

/* Links */
body.login a {
    text-decoration: none !important;
}

body.login a:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    body.login #login {
        width: 90% !important;
        margin: 20px auto !important;
    }
    
    body.login .wp-login-logo a {
        width: 80px !important;
        height: 80px !important;
    }
    
    body.login form#loginform .forgetmenot {
        display: block !important;
        margin-bottom: 10px !important;
    }
    
    body.login form#loginform .custom-forgot-password {
        float: none !important;
        display: block !important;
        text-align: left !important;
    }
}


body.login form#loginform {
    color: #3c434a;
    font-size: 13px;
    line-height: 1.4;
    margin: 24px 0;
    padding: 0 !important;
    font-weight: 400;
    overflow: hidden;
    background: #fff;
    border: none !important;
    box-shadow: none !important;
    font-family: 'Roboto Condensed', sans-serif !important;
}