body.login {
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}
body.login #login {
    width: 100%;
    max-width: 400px;
    padding: 8% 0 0;
    margin: 0;
}

/* Login Header / Logo Styling */
body.login h1,
body.login .wp-login-logo,
body.login #login h1 {
    text-align: center;
    margin-bottom: 1.25rem;
}

/* Default Logo Display (Keeps the SVG/PNG Logo, completely hides the text) */
body.login h1 a,
body.login .wp-login-logo a,
body.login #login h1 a {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto;
    text-indent: -9999px !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    background-size: 84px 84px;
    background-position: center top;
    background-repeat: no-repeat;
    outline: none;
    box-shadow: none;
}

/* Custom logo image support when configured */
body.login.wpeu-has-custom-img h1 a,
body.login.wpeu-has-custom-img .wp-login-logo a,
body.login.wpeu-has-custom-img #login h1 a {
    width: auto !important;
    height: auto !important;
    background-image: none !important;
    text-indent: 0 !important;
    overflow: visible !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    display: inline-block;
}

body.login .wpeu-custom-login-img {
    max-width: 280px;
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Hide login logo completely when option is enabled */
body.login.wpeu-hide-logo h1,
body.login.wpeu-hide-logo .wp-login-logo,
body.login.wpeu-hide-logo #login h1,
body.login #login h1.wpeu-hidden-logo,
body.login .wp-login-logo.wpeu-hidden-logo {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}

.login form {
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    padding: 2rem;
}
.login label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-top: 0.25rem;
    width: 100%;
}
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.login .button-primary {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    border-radius: 0.375rem !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: background-color 0.2s !important;
    width: 100%;
    padding: 0.5rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: inherit;
}
.login .button-primary:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}
.login #backtoblog, .login #nav {
    text-align: center;
    padding: 1rem 0;
}
.login #backtoblog a, .login #nav a {
    color: #6b7280;
    transition: color 0.2s;
    font-size: 0.875rem;
}
.login #backtoblog a:hover, .login #nav a:hover {
    color: #111827;
}
.login .message, .login .success, .login #login_error {
    border-radius: 0.5rem;
    box-shadow: none;
    margin-bottom: 20px;
}
.login #login_error {
    border-left-color: #ef4444;
    background-color: #fef2f2;
    color: #b91c1c;
}
.login .message, .login .success {
    border-left-color: #22c55e;
    background-color: #f0fdf4;
    color: #166534;
}
input[type="checkbox"] {
    border-radius: 0.25rem;
    border-color: #d1d5db;
    color: #2563eb;
}
input[type="checkbox"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Cloudflare Turnstile Container & Security Challenge Notices */
.wpeu-turnstile-wrap {
    margin: 12px 0 8px 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.wpeu-turnstile-notice {
    display: none;
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.wpeu-turnstile-notice.wpeu-show {
    display: block;
}
.wpeu-turnstile-notice.wpeu-error {
    color: #b91c1c;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}
.wpeu-turnstile-notice.wpeu-info {
    color: #1e40af;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
}
.wpeu-turnstile-wrap.wpeu-attention {
    animation: wpeu-shake 0.4s ease-in-out;
}
@keyframes wpeu-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}