/* style/login.css */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #ffffff); /* Fallback to white if variable not set */
}

.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    gap: 40px;
    flex-wrap: wrap;
}

.page-login__hero-content {
    max-width: 500px;
    text-align: left;
}

.page-login__hero-title {
    font-size: 2.8em;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-login__form {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__remember-me input[type="checkbox"] {
    margin-right: 8px;
}

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

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

.page-login__submit-button {
    width: 100%;
    padding: 12px 20px;
    background-color: #C30808; /* Login color */
    color: #FFFF00; /* Login font color */
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.page-login__submit-button:hover {
    background-color: #a00606;
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95em;
    color: #555555;
}

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

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

.page-login__hero-image-wrapper {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

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

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

.page-login__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
}

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

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

.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: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

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

/* How-to-Login Section */
.page-login__how-to-login-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-login__how-to-login-section .page-login__section-title,
.page-login__how-to-login-section .page-login__section-description,
.page-login__how-to-login-section .page-login__card-title {
    color: #ffffff;
}

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

.page-login__step-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00; /* Highlight color */
    margin-bottom: 15px;
    display: block;
}

.page-login__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 60px auto 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-login__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-login__video-overlay-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #C30808; /* Login color */
    color: #FFFF00; /* Login font color */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

.page-login__video-overlay-button:hover {
    background-color: #a00606;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

.page-login__trouble-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__support-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.page-login__support-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.page-login__support-text {
    max-width: 500px;
}

.page-login__support-text .page-login__card-title {
    text-align: left;
    font-size: 1.8em;
}

.page-login__support-text p {
    text-align: left;
    margin-bottom: 20px;
    color: #555555;
}

.page-login__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

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

.page-login__button--primary:hover {
    background-color: #005a2b;
    border-color: #005a2b;
}

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

.page-login__button--secondary:hover {
    background-color: #e0e0e0;
    color: #017439;
}

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

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-description,
.page-login__security-section .page-login__card-title {
    color: #ffffff;
}

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

.page-login__security-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__security-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* Experience Section */
.page-login__experience-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-login__game-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-login__game-card .page-login__card-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.3em;
    padding: 0 15px;
}

.page-login__game-card p {
    padding: 0 15px 20px 15px;
    color: #555555;
}

.page-login__game-link {
    display: block;
    padding: 10px 15px;
    background-color: #017439;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__game-link:hover {
    background-color: #005a2b;
}

/* Promotions Section */
.page-login__promotions-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-login__promotions-section .page-login__section-title,
.page-login__promotions-section .page-login__section-description,
.page-login__promotions-section .page-login__card-title {
    color: #ffffff;
}

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

.page-login__promo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-login__promo-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
}

.page-login__promo-card .page-login__card-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.3em;
    padding: 0 15px;
}

.page-login__promo-card p {
    padding: 0 15px 20px 15px;
    color: #f0f0f0;
}

.page-login__promotions-section .page-login__cta-buttons {
    margin-top: 40px;
    text-align: center;
}

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

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 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: #333333;
    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);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    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 */
    padding: 15px 25px;
}

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

.page-login__cta-content .page-login__section-title,
.page-login__cta-content .page-login__section-description {
    color: #ffffff;
}

.page-login__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

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

    .page-login__hero-content {
        text-align: center;
    }

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

    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-login__form {
        padding: 25px;
    }

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

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

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

    .page-login__benefits-grid,
    .page-login__steps-grid,
    .page-login__troubleshooting-grid,
    .page-login__security-grid,
    .page-login__games-grid,
    .page-login__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__support-cta {
        flex-direction: column;
        gap: 20px;
        padding: 30px 15px;
    }

    .page-login__support-text .page-login__card-title {
        text-align: center;
    }

    .page-login__support-text p {
        text-align: center;
    }

    .page-login__video-wrapper {
        margin-top: 40px;
    }

    .page-login__video-overlay-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-login__button,
    .page-login__submit-button,
    .page-login__video-overlay-button,
    .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__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* Images responsive */
    .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-image-wrapper,
    .page-login__video-wrapper,
    .page-login__support-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }

    /* Video responsive */
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 1.5em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__card-title {
        font-size: 1.2em;
    }
    .page-login__form {
        padding: 20px;
    }
}

/* Dark background specific styles for contrast */
.page-login__dark-section {
    background-color: #017439;
    color: #ffffff;
}

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

.page-login__dark-section .page-login__card-title {
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

.page-login__light-bg .page-login__card-title {
    color: #017439;
}