/**
 * Custom Login Page Styles
 *
 * Visual language matches the homepage hero: #1a2340 base + Gemini hero image,
 * frosted-glass card, gold (#C2B97F) accents. Single-column centered layout.
 *
 * @package FFOA_Custom
 * @since 1.3.0
 */

/* Force the dark background across the full viewport (mirrors homepage.css). */
html,
body.page-template-page-login,
body.page-template-page-login .site {
    background-color: #1a2340 !important;
}

.page-login {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
    background-color: #1a2340;
    background-image: url('../images/Gemini_Generated_Image_m9ub24m9ub24m9ub.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.login-hero {
    width: 100%;
    max-width: 460px;
}

.login-card {
    background: rgba(34, 46, 81, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 2.75rem 2.25rem 2.25rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    color: #ffffff;
    text-align: center;
}

.login-brand {
    margin-bottom: 1.25rem;
}

.login-logo {
    display: inline-block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.login-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.login-subtitle {
    font-size: 1rem;
    line-height: 1.55;
    color: #f0f0f0;
    margin: 0 auto 1.75rem;
    max-width: 360px;
}

.login-error {
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.6);
    color: #ffd7da;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    text-align: left;
}

.login-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    color: #1a2340;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-google-btn:hover,
.login-google-btn:focus {
    background: #f7f7f7;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    text-decoration: none;
    color: #1a2340;
    outline: none;
}

.login-google-btn:focus-visible {
    outline: 3px solid #C2B97F;
    outline-offset: 2px;
}

.login-google-icon {
    flex-shrink: 0;
}

.login-fineprint {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.login-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    margin: 1.75rem 0 1.25rem;
}

.login-admin-link {
    margin: 0;
    font-size: 0.85rem;
}

.login-admin-link a {
    color: #C2B97F;
    text-decoration: none;
    transition: color 0.15s ease;
}

.login-admin-link a:hover,
.login-admin-link a:focus {
    color: #d6cf97;
    text-decoration: underline;
}

/* Hide site-wide chrome elements that don't belong on a login screen. */
body.page-template-page-login .wp-block-post-title,
body.page-template-page-login .entry-title,
body.page-template-page-login .breadcrumbs {
    display: none !important;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem 1.75rem;
        border-radius: 12px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-logo {
        width: 80px;
        height: 80px;
    }

    .login-google-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}
