/**
 * Engage Hope - Custom Login Page Styles
 * Version 1.0.0
 *
 * Brand Colors:
 * Primary:   Ministry Navy #1E3264 | Hope Green #4CAF4B | Deep Green #2E7D32
 * Accent:    Harvest Gold #D4A843
 * Neutral:   White #FFFFFF | Light Gray #F5F5F5
 */

/* ==========================================
   Body & Background
   ========================================== */
body.login {
    background: linear-gradient(135deg, #1E3264 0%, #162851 40%, #0f1d3a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Subtle pattern overlay */
body.login::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(76, 175, 75, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 67, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(76, 175, 75, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   Logo / Header Area
   ========================================== */
body.login #login {
    position: relative;
    z-index: 1;
    width: 380px;
    padding: 0;
}

body.login #login h1 {
    margin-bottom: 0;
    padding: 0;
}

body.login #login h1 a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 30px 20px 20px;
    margin: 0;
    background: none !important;
    text-indent: 0;
    font-size: 0;
    color: transparent;
    outline: none;
}

body.login #login h1 a::before {
    content: "✦";
    display: block;
    font-size: 42px;
    color: #4CAF4B;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 12px rgba(76, 175, 75, 0.4));
}

body.login #login h1 a::after {
    content: "Engage Hope";
    display: block;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Login Form Container
   ========================================== */
body.login form {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 30px 32px 28px;
    margin-top: 10px;
}

/* ==========================================
   Form Labels
   ========================================== */
body.login form label {
    color: #1E3264;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* ==========================================
   Form Inputs
   ========================================== */
body.login form .input,
body.login form input[type="text"],
body.login form input[type="password"],
body.login form input[type="email"] {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 15px;
    color: #1a1a1a;
    height: auto;
    box-shadow: none;
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
    font-family: inherit;
}

body.login form .input:focus,
body.login form input[type="text"]:focus,
body.login form input[type="password"]:focus,
body.login form input[type="email"]:focus {
    border-color: #4CAF4B;
    box-shadow: 0 0 0 3px rgba(76, 175, 75, 0.15);
    background: #ffffff;
    outline: none;
}

/* ==========================================
   Remember Me Checkbox
   ========================================== */
body.login .forgetmenot {
    margin-top: 4px;
}

body.login .forgetmenot label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

body.login .forgetmenot input[type="checkbox"] {
    border-radius: 4px;
    border: 2px solid #ccd4e2;
}

body.login .forgetmenot input[type="checkbox"]:checked {
    background-color: #4CAF4B;
    border-color: #4CAF4B;
}

/* ==========================================
   Submit Button
   ========================================== */
body.login form .submit {
    margin-top: 6px;
}

body.login #wp-submit {
    width: 100%;
    background: linear-gradient(135deg, #4CAF4B 0%, #2E7D32 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 20px;
    height: auto;
    cursor: pointer;
    text-shadow: none;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
    transition: transform 160ms ease, box-shadow 160ms ease, background 200ms ease;
}

body.login #wp-submit:hover,
body.login #wp-submit:focus {
    background: linear-gradient(135deg, #43A047 0%, #256029 100%);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.45);
    transform: translateY(-1px);
}

body.login #wp-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

/* ==========================================
   Navigation Links (Lost password, Back to site)
   ========================================== */
body.login #nav,
body.login #backtoblog {
    text-align: center;
    padding: 0;
    margin: 14px 0 0;
}

body.login #nav a,
body.login #backtoblog a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 160ms ease;
}

body.login #nav a:hover,
body.login #nav a:focus,
body.login #backtoblog a:hover,
body.login #backtoblog a:focus {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(76, 175, 75, 0.4);
}

/* Separator between nav links */
body.login #nav {
    margin-top: 18px;
}

body.login #nav a {
    margin: 0 6px;
}

/* ==========================================
   Error / Success Messages
   ========================================== */
body.login .message,
body.login #login_error {
    border-radius: 10px;
    border-left-width: 4px;
    margin: 0 0 16px;
    padding: 12px 16px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.login .message {
    background: #f0fdf4;
    border-left-color: #4CAF4B;
    color: #166534;
}

body.login #login_error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

body.login #login_error a {
    color: #dc2626;
    font-weight: 600;
}

/* ==========================================
   Privacy Policy Link (if shown)
   ========================================== */
body.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 16px;
}

body.login .privacy-policy-page-link a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

body.login .privacy-policy-page-link a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   Language Switcher (WP 5.9+)
   ========================================== */
body.login .language-switcher {
    margin-top: 20px;
}

body.login .language-switcher label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

body.login .language-switcher select {
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 6px 10px;
}

body.login .language-switcher .button {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

body.login .language-switcher .button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ==========================================
   Footer / Tagline
   ========================================== */
body.login::after {
    content: "Empowering lives through sponsorship";
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 1;
}

/* ==========================================
   Responsive
   ========================================== */
@media screen and (max-width: 480px) {
    body.login #login {
        width: 92%;
        min-width: 280px;
    }

    body.login form {
        padding: 24px 20px 22px;
    }

    body.login #login h1 a::after {
        font-size: 26px;
    }
}

@media screen and (max-height: 700px) {
    body.login::after {
        display: none;
    }
}
