/* 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 the page content, considering dark body bg */
    background-color: transparent; /* Inherit from body or shared */
}

/* Header offset for fixed header */
.page-login__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
    position: relative;
    overflow: hidden; /* Ensure content doesn't spill */
}

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

/* Sections */
.page-login__hero-section {
    background-color: #017439; /* Brand primary color for hero */
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}

.page-login__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.3)); /* Dark overlay for text readability */
    z-index: 1;
}

.page-login__hero-section > .page-login__container {
    position: relative;
    z-index: 2;
}

.page-login__main-title {
    font-size: 3.5em;
    color: #FFFF00; /* Custom color for login/register font */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-form-wrapper {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for form background */
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto 40px auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__form-group {
    margin-bottom: 20px;
    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 #017439;
    border-radius: 8px;
    background-color: #f0f0f0; /* Light background for input */
    color: #333333; /* Dark text for input */
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom color for login button */
    color: #FFFF00; /* Custom color for login font */
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

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

.page-login__link-forgot-password {
    color: #ffffff;
    text-decoration: underline;
    font-size: 0.95em;
    transition: color 0.3s ease;
    text-align: center;
}

.page-login__link-forgot-password:hover {
    color: #FFFF00;
}

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

.page-login__link-register {
    color: #FFFF00;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__link-register:hover {
    color: #a30606;
}

.page-login__hero-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Make it subtle */
}

/* General Section Styles */
.page-login__light-bg {
    background-color: #ffffff; /* Custom background color */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-login__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* Light text for dark background */
    padding: 60px 0;
}

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: inherit; /* Inherit from section background type */
}

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

/* Why Choose Us Section */
.page-login__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__feature-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light card */
}

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

.page-login__feature-icon {
    width: 80px; /* Example size, adjust as needed */
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
    border-radius: 8px;
}

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

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

/* How to Login Section */
.page-login__step-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-login__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #FFFF00; /* Accent color */
}

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

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

.page-login__link {
    color: #FFFF00;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-login__link:hover {
    color: #ffffff;
}

.page-login__call-to-action-text {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    padding: 15px 30px;
    border: 2px solid #017439;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

.page-login__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Game Highlights Section */
.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-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

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

.page-login__game-card h3 {
    padding: 15px 20px 0;
    font-size: 1.3em;
    color: #017439;
}

.page-login__game-card h3 a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__game-card h3 a:hover {
    color: #C30808;
}

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

.page-login__more-games-cta {
    text-align: center;
    margin-top: 50px;
}

/* Download App Section */
.page-login__download-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__download-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 280px; /* Ensure items don't get too small */
    max-width: 400px;
    box-sizing: border-box;
}

.page-login__download-qr {
    width: 180px; /* Specific size for QR, but will be responsive */
    height: 180px; /* Specific size for QR, but will be responsive */
    margin: 0 auto 20px auto;
    border: 5px solid #ffffff;
    border-radius: 5px;
    display: block;
    object-fit: contain;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-login__download-text {
    font-size: 1.1em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-login__download-info {
    text-align: center;
    margin-top: 40px;
    font-size: 1em;
    color: #ffffff;
}

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

.page-login__faq-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

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

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

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on mobile */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-image {
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-bottom: 60px;
    }

    .page-login__main-title {
        font-size: 2.5em;
        margin-top: 20px;
    }

    .page-login__intro-text {
        font-size: 1.1em;
    }

    .page-login__login-form-wrapper {
        padding: 30px;
        max-width: 90%;
    }

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

    .page-login__btn-primary,
    .page-login__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-login__download-options {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .page-login__download-item {
        max-width: 90%;
        width: 100%;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__login-form-wrapper,
    .page-login__download-options,
    .page-login__cta-buttons,
    .page-login__game-grid,
    .page-login__features-grid,
    .page-login__faq-list {
        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 */
    }

    /* FAQ answers need padding for mobile */
    .page-login__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 15px 25px 15px; /* Adjust padding for mobile */
    }

}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__login-form-wrapper {
        padding: 20px;
    }
}

/* Image styles - ensuring minimum size and no filter */
.page-login img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space */
    filter: none !important; /* Absolutely no filter */
}

/* Ensure no filter on any image */
.page-login__hero-image,
.page-login__feature-icon,
.page-login__game-image,
.page-login__download-qr {
    filter: none !important;
}

/* Contrast fix classes (as per instructions, though applied intelligently above) */
.page-login__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}