/* style/login.css */

/* --- General Page Styling (Scoped to .page-login) --- */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Assuming body background is light/white */
}

.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-login__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px; /* Ensures a good height for the hero */
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    overflow: hidden; /* Prevent image overflow */
}

.page-login__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg .page-login__form-title,
.page-login__dark-bg .page-login__form-label,
.page-login__dark-bg .page-login__register-text {
    color: #ffffff;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.page-login__hero-section .page-login__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-login__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Yellow for main title */
}

.page-login__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-login__login-form-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 350px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #017439;
    text-align: center;
}

.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: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.page-login__checkbox-label {
    display: flex;
    align-items: center;
    color: #555555;
}

.page-login__checkbox {
    margin-right: 8px;
}

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

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

.page-login__btn-login {
    width: 100%;
    padding: 15px;
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-login__btn-login:hover {
    background-color: #9c0606;
}

.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__hero-image-wrapper {
    display: none; /* Hidden on desktop, shown on mobile for context */
}

/* --- Benefits Section --- */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for contrast */
}

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

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

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

.page-login__benefit-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

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

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

/* --- Game Showcase Section --- */
.page-login__game-showcase {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark section */
    color: #ffffff;
}

.page-login__game-showcase .page-login__section-title,
.page-login__game-showcase .page-login__section-description {
    color: #ffffff;
}

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

.page-login__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-login__game-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-login__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-login__game-card h3 {
    padding: 15px 20px 0;
    font-size: 1.4em;
    color: #FFFF00; /* Yellow for game titles */
}

.page-login__game-card h3 a {
    color: #FFFF00;
    text-decoration: none;
}

.page-login__game-card h3 a:hover {
    text-decoration: underline;
}

.page-login__game-card p {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* --- CTA Register Section --- */
.page-login__cta-register {
    padding: 80px 0;
    text-align: center;
    background-color: #f8f8f8;
}

.page-login__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-login__btn-register {
    display: inline-block;
    padding: 15px 30px;
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-login__btn-register:hover {
    background-color: #9c0606;
}

/* --- FAQ Section --- */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-login__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-login__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-login__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    margin-left: 15px;
    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;
    background-color: #ffffff;
    color: #555555;
}

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

/* --- Responsive Design --- */

/* Mobile / Tablet adjustments */
@media (max-width: 768px) {
    .page-login__container {
        padding: 0 15px; /* Add side padding for mobile */
    }

    .page-login__hero-section {
        min-height: auto;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        padding-bottom: 40px;
    }

    .page-login__hero-section .page-login__container {
        flex-direction: column;
        gap: 30px;
    }

    .page-login__hero-content {
        text-align: center;
    }

    .page-login__main-title {
        font-size: 2.2em;
    }

    .page-login__hero-description {
        font-size: 1em;
    }

    .page-login__login-form-wrapper {
        padding: 30px;
        width: 100%;
        max-width: 100%;
    }
    
    .page-login__hero-image-wrapper {
        display: block; /* Show image on mobile */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        border-radius: 8px;
    }

    .page-login__section-title {
        font-size: 1.8em;
    }

    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-login__benefits-grid,
    .page-login__game-grid {
        grid-template-columns: 1fr;
    }

    .page-login__benefit-card,
    .page-login__game-card {
        padding: 20px;
    }

    /* Image responsive rules for content area */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containing elements for images/videos/buttons */
    .page-login__section, /* Base class, apply to all sections */
    .page-login__benefits-section, 
    .page-login__game-showcase, 
    .page-login__cta-register, 
    .page-login__faq-section,
    .page-login__card,
    .page-login__container,
    .page-login__login-form-wrapper,
    .page-login__benefits-grid,
    .page-login__game-grid,
    .page-login__cta-content,
    .page-login__faq-list,
    .page-login__faq-item,
    .page-login__faq-question,
    .page-login__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsive */
    .page-login__btn-login,
    .page-login__btn-register {
        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;
    }
}

/* Medium screens (e.g., tablets in landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }

    .page-login__hero-description {
        font-size: 1.2em;
    }

    .page-login__hero-section .page-login__container {
        flex-direction: column;
        gap: 40px;
    }

    .page-login__hero-content {
        text-align: center;
    }

    .page-login__login-form-wrapper {
        max-width: 500px;
    }
    
    .page-login__hero-image-wrapper {
        display: none; /* Hide image on tablet */
    }

    .page-login__benefits-grid,
    .page-login__game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screens (desktop) */
@media (min-width: 1025px) {
    .page-login__hero-section .page-login__container {
        flex-direction: row;
    }
    .page-login__hero-content {
        flex: 1;
        text-align: left;
    }
    .page-login__login-form-wrapper {
        flex: 0 0 400px; /* Fixed width for form on desktop */
        margin-left: 50px;
        margin-right: 0;
    }
    .page-login__hero-image-wrapper {
        display: none; /* Hidden on desktop */
    }
}

/* Ensure content images are not smaller than 200px on desktop */
@media (min-width: 769px) {
    .page-login__benefit-image,
    .page-login__game-image {
        min-width: 200px;
        min-height: 200px;
    }
}