/* ==========================================================================
   WP LOGIN PAGE STYLES - ELECTROGATE
   ========================================================================== */

/* --- 1. Base Body Styles --- */
body.login {
    background-color: #f5f4ef;
    font-family: 'Inter', sans-serif;
}

/* --- 2. Custom Text Logo (Replaces WP Image) --- */
#login h1 {
    text-align: center;
    background: #0b1316;
    margin-bottom: 2rem;
}

#login h1 a {
    background-image: none !important;
    text-indent: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 30px auto !important;
    
    /* Typography */
    color: #ffffff !important; 
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-weight: 800; 
    font-size: 28px !important;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    
    /* Flex setup for the Yellow Bar */
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

/* The Yellow Bar */
#login h1 a::before {
    content: "";
    display: block;
    width: 35px;
    height: 5px;
    background-color: #f8b71b; 
    margin-bottom: 12px;
}

/* --- 3. Main Login Container --- */
#login {
    background: #fff;
    margin: 5vh auto;
    padding: 40px; /* Consolidated padding */
    width: 90%; /* Makes the form responsive on mobile */
    max-width: 400px; /* Caps the width on desktop */
    border-radius: 4px; /* Slight rounding for a modern feel */
    box-shadow:
        0 2.8px 2.2px rgba(0, 0, 0, 0.034),
        0 6.7px 5.3px rgba(0, 0, 0, 0.048),
        0 12.5px 10px rgba(0, 0, 0, 0.06),
        0 22.3px 17.9px rgba(0, 0, 0, 0.072),
        0 41.8px 33.4px rgba(0, 0, 0, 0.086),
        0 100px 80px rgba(0, 0, 0, 0.12);
}

/* --- 4. Form Elements --- */
.login form {
    box-shadow: none;
    padding: 0;
    border: none; /* Removes default WP border */
    background: transparent;
    padding: 0.3rem!important;
}

.login label {
    color: #172228;
    font-size: 14px;
    font-weight: 500;
}

.login form .forgetmenot {
    float: none;
    margin-bottom: 15px; /* Adds space before the submit button */
}

#login form p.submit {
    margin-top: 15px;
}

.login #nav {
    margin: 0!important;
}
.login #backtoblog, .login #nav{
      padding: 0.3rem!important;
}

/* --- 5. Submit Button --- */
.login.wp-core-ui .button-primary {
    background: #f8b71b;
    border-color: #f8b71b;
    box-shadow: none;
    color: #0b1316;
    text-shadow: none;
    float: none;
    clear: both;
    display: block;
    width: 100%;
    padding: 10px; /* Increased padding slightly for better click area */
    height: auto;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease; /* Smooth hover transition */
}

.login.wp-core-ui .button-primary:hover,
.login.wp-core-ui .button-primary:focus {
    background: #d99b00;
    border-color: #d99b00;
    color: #0b1316;
}

/* --- 6. Focus States & Accessibility --- */
.login a:focus,
.login input:focus,
.login button:focus {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f8b71b !important; /* Changed from blue to your brand yellow */
    outline: 2px solid transparent;
}

/* --- 7. Messages & Errors --- */
.login #login_error, 
.login .message, 
.login .success {
    border-left: 4px solid #f8b71b;
    box-shadow: none;
    background: #fdfaf2; /* Soft yellow tint for messages */
}

/* --- 8. Utilities --- */
p#backtoblog {
    display: none;
}