/* Reset and main layout */
body.login {
    background: linear-gradient(135deg, #f6f8fb 0%, #eef2f7 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#login {
    width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

/* Logo styling */
.login h1 {
    margin: 0 0 30px 0;
    padding: 0;
}

.login h1 a {
    background-image: url('../images/logo.PNG') !important;
    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    width: 280px !important;
    height: 100px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    pointer-events: none !important;
}

/* Clock styling */
#login-clock {
    text-align: center;
    padding: 20px 0 30px;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 30px;
}

#login-clock .time {
    font-size: 64px;
    font-weight: 300;
    color: #2271b1;
    letter-spacing: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#login-clock .meridiem {
    display: inline-block;
    font-size: 20px;
    color: #2271b1;
    margin-left: 8px;
    opacity: 0.8;
    font-weight: 500;
    vertical-align: middle;
}

/* Form styling */
#loginform {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: 100%;
}

.login form .input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    margin: 8px 0 20px;
    background: #f9fafb;
}

.login form .input:focus {
    border-color: #2271b1;
    background: white;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
    outline: none;
}

.login label {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

/* Button styling */
.wp-core-ui .button-primary {
    width: 100%;
    padding: 12px;
    height: auto;
    background: #2271b1;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.wp-core-ui .button-primary:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.wp-core-ui .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

/* Remember Me checkbox */
.forgetmenot {
    margin: 15px 0;
}

.login .forgetmenot label {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type=checkbox] {
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    width: 16px;
    height: 16px;
}

/* Links */
.login #nav {
    text-align: center;
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 2px solid #f0f2f5;
}

.login #nav a {
    color: #2271b1;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login #nav a:hover {
    color: #135e96;
}

/* Hide back to site link */
#backtoblog {
    display: none;
}

/* Error messages */
#login_error,
.message {
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(185, 28, 28, 0.1);
}

.message {
    background: #e0f2fe;
    color: #0369a1;
    box-shadow: 0 2px 4px rgba(3, 105, 161, 0.1);
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    body.login {
        background: white;
    }

    #login {
        width: 100%;
        padding: 20px;
        box-shadow: none;
    }
    
    #login-clock .time {
        font-size: 48px;
    }
    
    #login-clock .meridiem {
        font-size: 18px;
    }
}

.login h1 {
    margin: 0 0 10px 0;
    padding: 0;
}

/* Portal title styling */
.login .portal-title {
    text-align: center;
    color: #2271b1;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 30px 0;
    padding: 0;
}