/* style/login.css */

/* Base styles for the login page content */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--bg-light, #ffffff); /* Ensure a light background for the main content area */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* Container for consistent content width */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-login__hero-section,
.page-login__benefits-section,
.page-login__security-section,
.page-login__explore-games-section,
.page-login__faq-section,
.page-login__cta-section {
    padding: 60px 0;
    text-align: center;
}

/* Dark background sections for contrast */
.page-login__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-login__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
}

/* Main title and subtitle */
.page-login__main-title {
    font-size: 3.2em;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__subtitle {
    font-size: 1.3em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section titles and descriptions */
.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Hero section specific styling */
.page-login__hero-section {
    background: linear-gradient(to bottom, #e0ffe0, #ffffff); /* Light gradient for hero */
    padding-bottom: 80px;
}
.page-login__hero-section .page-login__main-title {
    color: #017439;
}
.page-login__hero-section .page-login__subtitle {
    color: #333333;
}

/* Login Form Wrapper */
.page-login__login-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__login-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.page-login__form-group {
    margin-bottom: 20px;
}

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #999999;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #017439; /* Brand color for checkbox */
}

.page-login__checkbox-label {
    color: #555555;
}

.page-login__forgot-password {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-login__forgot-password:hover {
    text-decoration: underline;
}

.page-login__btn-submit {
    width: 100%;
    padding: 15px 20px;
    background-color: #C30808; /* Custom login button color */
    color: #FFFF00; /* Custom login font color */
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-submit:hover {
    background-color: #a00606;
}

.page-login__register-text {
    text-align: center;
    margin-top: 25px;
    color: #555555;
}

.page-login__register-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-login__register-link:hover {
    text-decoration: underline;
}

.page-login__form-image {
    max-width: 500px;
    width: 100%;
}

.page-login__form-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure image behaves as block for max-width */
}

/* Benefits section */
.page-login__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__benefit-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-login__benefit-card:hover {
    transform: translateY(-10px);
}

.page-login__benefit-icon {
    width: 100px; /* Example size, adjust as needed */
    height: auto;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-login__benefit-text {
    font-size: 1em;
    color: #555555;
}

/* Security section */
.page-login__security-section {
    padding: 80px 0;
}
.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-description {
    color: #ffffff;
}

.page-login__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__security-icon {
    width: 80px; /* Example size */
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__security-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for titles on dark background */
}

.page-login__security-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-login__cta-buttons {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    display: inline-block; /* Make it behave like a block for width, but inline for flex layout */
}

.page-login__btn-primary {
    background-color: #C30808; /* Red for primary action */
    color: #FFFF00; /* Yellow text */
    border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2b;
    border-color: #005a2b;
}

/* Explore Games Section */
.page-login__explore-games-section {
    padding-top: 80px;
}

.page-login__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__game-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-login__game-card:hover {
    transform: translateY(-10px);
}

.page-login__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be overridden by height: auto on mobile */
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.page-login__game-title {
    font-size: 1.4em;
    margin: 20px 20px 10px 20px;
    color: #017439;
}

.page-login__game-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__game-title a:hover {
    text-decoration: underline;
    color: #005a2b;
}

.page-login__game-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px 20px 20px;
}

/* FAQ Section */
.page-login__faq-section {
    padding-bottom: 80px;
}

.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-login__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #f0f0f0;
}

.page-login__faq-title {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #ffffff;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px 20px 20px;
}

.page-login__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Call to Action Section */
.page-login__cta-section {
    padding: 80px 0;
}
.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__benefits-grid,
    .page-login__security-grid,
    .page-login__game-categories {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__explore-games-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 0;
    }
    .page-login__container {
        padding: 0 15px; /* Add padding to container on mobile */
    }

    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__subtitle {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 1em;
    }

    .page-login__login-form-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-login__login-form {
        padding: 30px 20px;
        max-width: 100%; /* Full width on mobile */
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-login__btn-submit {
        font-size: 1.1em;
    }

    /* All images must be responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers with images/videos must be responsive */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__login-form-wrapper,
    .page-login__benefits-grid,
    .page-login__security-grid,
    .page-login__game-categories,
    .page-login__cta-buttons,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video section padding adjustment for mobile */
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    /* Buttons responsive */
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-login__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
}

/* Ensure no filter on images */
.page-login img {
    filter: none !important;
}

/* Content area image CSS dimensions lower bound */
/* This rule targets all img elements within .page-login and ensures their displayed size is not less than 200px. */
.page-login img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}
/* For smaller images that are part of the content but are not icons, e.g., benefit icons, security icons */
.page-login__benefit-icon,
.page-login__security-icon {
    min-width: 80px; /* Still larger than small icons, but smaller than content images */
    min-height: 80px;
    width: auto;
    height: auto;
}

/* Override min-width/height for social/favicon/logo if they are accidentally caught by .page-login img */
.page-login img[alt*="social"],
.page-login img[alt*="favicon"],
.page-login img[alt*="logo"] {
    min-width: unset;
    min-height: unset;
}