/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0d0d0d; /* Inherited from body, but good to reinforce */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #017439; /* Primary brand color for hero background */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-login__hero-section .page-login__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.page-login__main-title {
    font-size: 3.5em;
    color: #FFFF00; /* Custom color for login/register font */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-login__hero-description {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 30px;
    max-width: 600px;
}

.page-login__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-download,
.page-login__btn-submit {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-login__btn-primary,
.page-login__btn-submit {
    background-color: #C30808; /* Custom login/register button color */
    color: #ffffff; /* White text for contrast on red background */
    border: 2px solid #C30808;
}

.page-login__btn-primary:hover,
.page-login__btn-submit:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

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

.page-login__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.page-login__btn-download:hover {
    background-color: #005f2e;
    transform: translateY(-2px);
}

/* Login Form Section */
.page-login__form-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Body background color */
    color: #ffffff; /* Text color for dark background */
}

.page-login__login-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card for dark background */
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__login-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
    border-radius: 15px; /* Ensure it stays within card bounds */
}

.page-login__login-form {
    position: relative;
    z-index: 1;
    width: 100%;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #222;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
    border-color: #017439;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-login__btn-submit {
    flex-grow: 1;
    min-width: 150px;
}

.page-login__forgot-password {
    color: #FFFF00; /* Custom font color for login/register */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

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

.page-login__register-text {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__register-link {
    color: #FFFF00; /* Custom font color for login/register */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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


/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

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

.page-login__benefit-item {
    background-color: rgba(0, 0, 0, 0.2); /* Dark overlay on primary color */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Body background color */
    color: #ffffff;
}

.page-login__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.page-login__security-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-login__security-list li {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFF00'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat left center;
    background-size: 20px 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-login__list-highlight {
    color: #FFFF00; /* Custom font color */
}

.page-login__security-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.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-color: rgba(0, 0, 0, 0.2); /* Dark overlay on primary color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-login__game-card h3 {
    padding: 15px 20px 10px;
    font-size: 1.3em;
    font-weight: bold;
}

.page-login__game-card h3 a {
    color: #FFFF00; /* Custom font color */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-login__game-card p {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #f0f0f0;
    flex-grow: 1; /* Ensures consistent height for cards with varying text */
}

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

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00; /* Custom font color */
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-login__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

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

.page-login__faq-answer p {
    margin-top: 15px;
}

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

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

/* CTA Section at the bottom */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    text-align: center;
}

.page-login__cta-section .page-login__cta-buttons {
    justify-content: center;
}

/* Ensure all images within page-login are responsive by default */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Explicitly remove any potential filter */
}

/* Responsive adjustments */
@media (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;
        text-align: center;
    }
    .page-login__hero-content {
        text-align: center;
    }
    .page-login__security-content {
        flex-direction: column;
    }
    .page-login__security-text, .page-login__security-image-wrapper {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-login__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

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

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

    .page-login__hero-section {
        padding: 80px 0;
        min-height: unset;
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
    }

    .page-login__hero-section .page-login__container,
    .page-login__form-section .page-login__container,
    .page-login__benefits-section .page-login__container,
    .page-login__security-section .page-login__container,
    .page-login__game-showcase-section .page-login__container,
    .page-login__faq-section .page-login__container,
    .page-login__cta-section .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-download,
    .page-login__btn-submit {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-login__forgot-password {
        text-align: center;
    }

    /* Images and video responsiveness for mobile */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-login__hero-image-wrapper,
    .page-login__security-image-wrapper,
    .page-login__game-card,
    .page-login__video-wrapper /* if video exists */ {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }
    
    .page-login__game-grid {
        grid-template-columns: 1fr;
    }

    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Specific styling for custom colors and contrast */
.page-login__hero-section,
.page-login__benefits-section,
.page-login__game-showcase-section,
.page-login__cta-section {
    background-color: #017439; /* Primary brand color for dark background sections */
    color: #ffffff;
}

.page-login__form-section,
.page-login__security-section,
.page-login__faq-section {
    background-color: #0d0d0d; /* Body background color for dark background sections */
    color: #ffffff;
}

.page-login__main-title,
.page-login__forgot-password,
.page-login__register-link,
.page-login__benefit-title,
.page-login__list-highlight,
.page-login__game-card h3 a,
.page-login__faq-question,
.page-login__faq-link {
    color: #FFFF00; /* Login and Register Font color, used for highlights and specific links on dark backgrounds */
}

.page-login__btn-primary,
.page-login__btn-submit {
    background-color: #C30808; /* Login/Register button color */
    border-color: #C30808;
    color: #ffffff; /* Override to white for WCAG AA contrast on red background */
}

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