/* style/login.css */
.page-login {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Text on dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    background: url('[GALLERY:hero_login:1920x1080:new88,login_page,secure_access,gaming_platform]') no-repeat center center/cover;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    box-sizing: border-box;
    color: #ffffff;
}

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

/* Hero Section - Desktop Layout */
@media (min-width: 1025px) {
    .page-login__hero-layout {
        position: relative;
        z-index: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 60px; /* Space between content and form */
        width: 100%;
    }
    .page-login__hero-content {
        flex: 1;
        max-width: 50%;
        text-align: left;
    }
    .page-login__form-card {
        flex-shrink: 0;
        max-width: 450px;
    }
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-right: 40px;
    text-align: left;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-login__form-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for form */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: bold;
}

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

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

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

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

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__btn-login {
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-grow: 1;
    margin-right: 15px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: bold;
}

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

.page-login__forgot-password {
    color: #f0f0f0;
    font-size: 0.95em;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.page-login__register-prompt {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__register-prompt p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-login__btn-register {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: bold;
}

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

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

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    text-align: center;
}

.page-login__dark-section {
    background-color: #1a1a2e; /* Body background color from shared.css */
    color: #ffffff; /* Light text for dark background */
}

.page-login__benefits-section .page-login__section-title {
    color: #ffffff; /* White title on dark background */
}

.page-login__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted for larger icons */
    gap: 30px;
    margin-top: 40px;
}

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-login__benefit-icon {
    width: 250px; /* Must be >= 200px */
    height: 250px; /* Must be >= 200px */
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 10px; 
    display: block;
}

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

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

/* Game Preview Section */
.page-login__game-preview-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background for contrast */
    color: #333333;
}

.page-login__game-preview-section .page-login__section-title {
    color: #017439;
}

.page-login__game-preview-section .page-login__section-description {
    color: #555555;
}

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

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

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

.page-login__game-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

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

.page-login__game-conclusion {
    margin-top: 60px;
    font-weight: bold;
    color: #333333;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    text-align: center;
}

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

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(1, 116, 57, 0.8); /* Darker green for summary */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* Remove default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-login__faq-qtext {
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFFF00; /* Yellow toggle icon */
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-login__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-login__cta-description {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-login__btn-cta {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.page-login__btn-cta:hover {
    background-color: #a00606;
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__hero-content {
        margin-right: 20px;
    }
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__form-card {
        max-width: 400px;
        padding: 30px;
    }
    .page-login__section-title {
        font-size: 2.2em;
    }
    .page-login__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-login__hero-section {
        flex-direction: column;
        min-height: auto;
        padding: 60px 20px;
    }

    .page-login__hero-content {
        margin-right: 0;
        margin-bottom: 40px;
        text-align: center;
        max-width: 100%;
    }

    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-login__form-card {
        max-width: 100%;
        padding: 25px;
    }

    .page-login__form-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-login__form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__btn-login {
        width: 100%;
        margin-right: 0;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__forgot-password {
        font-size: 0.9em;
    }

    .page-login__btn-register {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

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

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

    .page-login__benefit-icon {
        width: 200px !important; /* Min size for mobile */
        height: 200px !important;
    }

    .page-login__game-img {
        
    }

    .page-login__faq-list {
        margin-top: 30px;
    }

    .page-login__faq-item summary {
        padding: 18px 20px;
        font-size: 1.05em;
    }

    .page-login__faq-answer {
        padding: 18px 20px;
    }

    .page-login__cta-title {
        font-size: 2em;
    }

    .page-login__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__btn-cta {
        padding: 12px 25px;
        font-size: 1.1em;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__game-preview-section,
    .page-login__faq-section,
    .page-login__cta-section {
        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 */
    }
}

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