/* style/login.css */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark #1a1a2e, so text should be light */
    background-color: transparent; /* inherited from shared.css body */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    overflow: hidden;
    color: #ffffff;
}

.page-login__hero-bg {
    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-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom color for important titles */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-form-wrapper {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 10px;
    max-width: 450px;
    margin: 30px auto 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

.page-login__form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.page-login__forgot-password {
    color: #FFFF00;
    text-decoration: none;
    font-size: 0.95em;
}

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

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background-color: #C30808; /* Custom color for Login/Register buttons */
    color: #FFFF00; /* Custom color for Login/Register button text */
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

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

.page-login__register-prompt {
    margin-top: 20px;
    color: #ffffff;
    font-size: 1em;
}

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

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

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFFF00; /* Use custom color for titles */
}

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

.page-login__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 60px 20px;
}

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

/* Benefits Section */
.page-login__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 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;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

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

.page-login__benefit-icon {
    width: 100%;
    max-width: 200px; /* Adjust as needed, but ensure min 200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Game Showcase Section */
.page-login__game-showcase-section {
    padding: 60px 20px;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
}

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

.page-login__game-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    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.3);
}

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

.page-login__game-title {
    font-size: 1.8em;
    padding: 15px 20px 5px;
    color: #FFFF00;
}

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

/* Security Section */
.page-login__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-login__security-text-block {
    flex: 1;
    min-width: 300px;
}

.page-login__security-subtitle {
    font-size: 1.8em;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-login__security-paragraph {
    margin-bottom: 15px;
    color: #ffffff;
}

.page-login__security-img {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* CTA Download Section */
.page-login__cta-download-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
}

.page-login__download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-login__download-btn,
.page-login__register-cta-btn {
    max-width: 300px;
    flex-grow: 1;
}

.page-login__download-img {
    margin-top: 50px;
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-login__faq-item {
    background-color: rgba(0, 0, 0, 0.05); /* Light background for light-bg section */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-login__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f8f8;
    color: #333333;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #017439;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: '−';
}

.page-login__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

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

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

@media (max-width: 768px) {
    .page-login__hero-title {
        font-size: 2.5em;
    }

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

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

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

    .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__security-content {
        flex-direction: column;
    }

    .page-login__security-img {
        max-width: 100%;
    }

    /* Mobile image, video, button overflow prevention */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper,
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-login__cta-button,
    .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__download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}