.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    box-sizing: border-box;
}

.page-login__hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

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

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.page-login__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Login Form */
.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__form-group {
    margin-bottom: 15px;
    text-align: left;
}

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #26A9E0;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

.page-login__remember-me {
    color: #f0f0f0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.page-login__remember-me input {
    margin-right: 5px;
}

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #EA7C07;
}

.page-login__btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #EA7C07; /* Login button color */
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

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

.page-login__no-account {
    margin-top: 15px;
    color: #f0f0f0;
    font-size: 0.95em;
}

.page-login__register-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #EA7C07;
}

.page-login__btn-download-app {
    display: inline-block;
    padding: 12px 25px;
    background-color: #26A9E0;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.page-login__btn-download-app:hover {
    background-color: #1e87b7;
}

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #FFFFFF; /* Default for dark sections */
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Default for dark sections */
}

.page-login__dark-section {
    background-color: #26A9E0; /* Primary brand color as background */
    padding: 60px 0;
    color: #FFFFFF; /* White text for contrast */
}

.page-login__light-bg {
    background-color: #FFFFFF;
    padding: 60px 0;
    color: #333333; /* Dark text for contrast */
}

.page-login__light-bg .page-login__section-title {
    color: #26A9E0; /* Brand color for titles on light background */
}

.page-login__light-bg .page-login__section-description {
    color: #666666;
}

/* 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: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
    width: 100%; /* Ensure large image, not icon */
    max-width: 250px; /* Adjust for visual balance */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Games Showcase */
.page-login__games-showcase {
    padding: 60px 0;
    background-color: #000000; /* Dark background for game showcase */
    color: #FFFFFF;
}

.page-login__games-showcase .page-login__section-title {
    color: #FFFFFF;
}

.page-login__games-showcase .page-login__section-description {
    color: #f0f0f0;
}

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

.page-login__game-card {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-login__game-card-title {
    font-size: 1.3em;
    color: #FFFFFF;
    padding: 15px;
    margin: 0;
}

.page-login__game-card-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px 15px;
}

/* App Download Section */
.page-login__app-download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-login__app-cta-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsive button */
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-login__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
    border-color: #1e87b7;
}

.page-login__btn-large {
    min-width: 200px; /* Ensure buttons are not too small */
}

.page-login__app-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Tips Section */
.page-login__tips-section {
    padding: 60px 0;
    background-color: #000000; /* Another dark background */
    color: #FFFFFF;
}

.page-login__tips-section .page-login__section-title {
    color: #FFFFFF;
}

.page-login__tips-section .page-login__section-description {
    color: #f0f0f0;
}

.page-login__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-login__tips-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    font-size: 1.05em;
    line-height: 1.5;
}

.page-login__tips-list li strong {
    color: #FFFFFF;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
}

.page-login__faq-section .page-login__section-title {
    color: #26A9E0;
}

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

.page-login__faq-item {
    background-color: #f9f9f9;
    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;
    background-color: #FFFFFF;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #26A9E0;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    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;
}

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

.page-login__faq-answer p {
    margin: 0;
    color: #555555;
}

/* CTA Section (Bottom) */
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Using primary color for strong CTA */
    color: #FFFFFF;
}

.page-login__cta-section .page-login__section-title {
    color: #FFFFFF;
    font-size: 2.8em;
}

.page-login__cta-section .page-login__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile fixed header */
        justify-content: flex-start; /* Align content to top */
        padding-bottom: 40px;
    }

    .page-login__hero-content {
        padding: 20px;
        max-width: 90%;
    }

    .page-login__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-login__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-login__login-form-wrapper {
        padding: 20px;
    }

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

    .page-login__btn-download-app {
        width: 100%;
        max-width: 300px;
    }

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

    .page-login__section-description {
        font-size: 0.9em;
    }

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

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

    .page-login__benefit-icon {
        max-width: 200px;
    }

    .page-login__game-card-image {
        height: 180px;
    }

    .page-login__app-cta-wrapper {
        flex-direction: column;
        width: 100%;
        padding: 0 15px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        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;
        min-width: unset; /* Remove min-width for mobile */
    }
    
    .page-login__btn-large {
        width: 100%;
    }

    .page-login__app-image {
        max-width: 100%;
    }

    .page-login__faq-question {
        padding: 15px;
    }

    .page-login__faq-question h3 {
        font-size: 1em;
    }

    /* All images responsive for mobile */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All image/video/button containers responsive for mobile */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__login-form-wrapper,
    .page-login__app-cta-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific padding for sections if needed, ensuring no double padding with global */
    .page-login__benefits-section,
    .page-login__games-showcase,
    .page-login__app-download-section,
    .page-login__tips-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 0; /* Adjust section padding for mobile */
    }
}

/* Ensure no image filters are used */
.page-login img {
    filter: none;
}

/* Ensure content area images are not too small */
.page-login__benefit-icon,
.page-login__game-card-image,
.page-login__app-image {
    min-width: 200px;
    min-height: 200px;
}

/* Specific styling for page-login__dark-bg to override default .page-login color for text */
.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg .page-login__benefit-title,
.page-login__dark-bg .page-login__benefit-text,
.page-login__dark-bg .page-login__tips-list li,
.page-login__dark-bg .page-login__tips-list li strong {
    color: #FFFFFF;
}

/* Specific styling for page-login__light-bg */
.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__section-description,
.page-login__light-bg .page-login__faq-question h3,
.page-login__light-bg .page-login__faq-answer p,
.page-login__light-bg .page-login__faq-toggle {
    color: #333333; /* Dark text */
}

.page-login__light-bg .page-login__faq-question {
    color: #333333;
}
.page-login__light-bg .page-login__faq-item {
    background-color: #f9f9f9;
}
.page-login__light-bg .page-login__faq-question {
    background-color: #FFFFFF;
}
.page-login__light-bg .page-login__faq-question:hover {
    background-color: #e9e9e9;
}