/* Custom Login Styles */
body.login {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login h1 a {
    background-image: url('https://www.mironconsultingcorp.com/wp-content/uploads/MCCLogobanner.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 120px; /* Slightly taller to accommodate the banner */
    width: 100%;
    max-width: 400px; /* Match the form width */
    margin: 0 auto 15px;
    pointer-events: none;
    display: block;
    text-indent: -9999px; /* Hide the default WordPress text */
}

.login form {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    background: #fff;
    margin-top: 20px;
    padding: 26px 24px 26px;
}

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

.login input[type="text"],
.login input[type="password"] {
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 12px;
    height: auto;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

.wp-core-ui .button-primary {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
    text-shadow: none;
    box-shadow: none;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    height: auto;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
    background: #4338ca;
    border-color: #4338ca;
    box-shadow: none;
}

.login #nav,
.login #backtoblog {
    text-align: center;
    margin: 16px 0 0;
    padding: 0;
}

.login #nav a,
.login #backtoblog a {
    color: #4f46e5 !important;
    text-decoration: none;
    font-size: 13px;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #4338ca !important;
    text-decoration: underline;
}

.login .message,
.login .success,
.login #login_error {
    border-left: 4px solid #4f46e5;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin: 0 0 20px;
    padding: 12px;
}

.login #login_error {
    border-left-color: #dc2626;
}

.login .success {
    border-left-color: #10b981;
}

/* Specific to lost password page */
.login-action-lostpassword .message,
.login-action-resetpass .message {
    border-left: 4px solid #4f46e5;
}

/* Center the form on the page */
#login {
    padding: 5% 0 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .login h1 a {
        height: 80px;
    }
    
    .login form {
        margin-left: 0;
        margin-right: 0;
        padding: 20px;
    }
}

/* Hide language switcher if not needed */
.language-switcher {
    display: none;
}

/* Hide the 'Go to [Site Name]' link */
#backtoblog {
    display: none !important;
}
