:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-login {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 10px; /* Small padding-top for the first section, body handles --header-offset */
}

/* Ensure all images are responsive and not too small */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    filter: none; /* Ensure no filter is applied to images */
}

/* Content area general styles */
.page-login__content-area,
.page-login__benefits-section,
.page-login__login-guide-section,
.page-login__security-section,
.page-login__game-offerings-section,
.page-login__promotions-section,
.page-login__faq-section,
.page-login__contact-cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-login__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
    margin-bottom: 40px;
}

.page-login__hero-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 0;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    background: rgba(8, 22, 15, 0.7);
    padding: 40px;
    border-radius: 12px;
    margin-top: 100px;
    margin-bottom: 100px;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__hero-title {
    font-size: clamp(2em, 4vw, 3.2em);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
}

/* Login Form */
.page-login__login-form-container {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: left;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--deep-green-color);
    color: var(--text-main);
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

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

.page-login__forgot-password {
    color: var(--text-secondary);
    text-decoration: none;
}

.page-login__forgot-password:hover {
    color: var(--primary-color);
}

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 5px;
}

.page-login__checkbox-label {
    color: var(--text-secondary);
}

.page-login__submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__submit-btn:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__register-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.page-login__register-link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* 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-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
    min-height: 200px; /* Enforce minimum height */
}

.page-login__benefit-title {
    color: var(--gold-color);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-login__benefit-text {
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* Login Guide Section */
.page-login__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__guide-step-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-login__step-number {
    width: 50px;
    height: 50px;
    background: var(--button-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.page-login__step-title {
    color: var(--gold-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-login__step-text {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 15px;
}

.page-login__step-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    min-height: 200px; /* Enforce minimum height */
}

.page-login__step-link,
.page-login__step-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__step-link:hover,
.page-login__step-btn:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__note-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 40px;
    font-style: italic;
}

/* Security Section */
.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-login__security-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-login__security-item-title {
    color: var(--gold-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-login__security-item-text {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 15px;
}

.page-login__read-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__security-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-top: 40px;
    border-radius: 10px;
    min-height: 200px; /* Enforce minimum height */
}

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

.page-login__game-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.page-login__game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
    min-height: 200px; /* Enforce minimum height */
}

.page-login__game-title {
    color: var(--gold-color);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.page-login__game-text {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.page-login__game-link {
    display: inline-block;
    padding: 8px 15px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__game-link:hover {
    background: var(--secondary-color);
}

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

.page-login__cta-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-login__cta-btn--primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-login__cta-btn--primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__cta-btn--secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-login__cta-btn--secondary:hover {
    background-color: var(--gold-color);
    color: var(--background-color);
}

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

.page-login__promotion-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-login__promotion-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
    min-height: 200px; /* Enforce minimum height */
}

.page-login__promotion-title {
    color: var(--gold-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-login__promotion-text {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 15px;
}

.page-login__promotion-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__promotion-link:hover {
    background: var(--secondary-color);
}

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
}

.page-login__faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.1em;
    font-weight: 600;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-login__faq-question:hover {
    background-color: var(--deep-green-color);
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
}

.page-login__faq-item[open] .page-login__faq-question {
    border-bottom: none;
}

.page-login__faq-answer {
    padding: 15px 25px;
    color: var(--text-secondary);
    font-size: 0.95em;
    text-align: left;
}

.page-login__faq-item summary {
    list-style: none;
}

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

/* Contact CTA Section */
.page-login__contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-login__contact-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-login__contact-btn--primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-login__contact-btn--primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__contact-btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-login__contact-btn--secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-login__hero-image {
        height: 500px;
    }
    .page-login__hero-content {
        margin-top: 80px;
        margin-bottom: 80px;
        padding: 30px;
    }
    .page-login__hero-title {
        font-size: clamp(1.8em, 4.5vw, 2.8em);
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-login {
        padding-top: 10px !important;
    }
    .page-login__hero-image {
        height: 400px;
    }
    .page-login__hero-content {
        margin-top: 60px;
        margin-bottom: 60px;
        padding: 20px;
    }
    .page-login__hero-title {
        font-size: clamp(1.6em, 5vw, 2.5em);
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
    }
    .page-login__benefits-grid,
    .page-login__guide-steps,
    .page-login__security-list,
    .page-login__game-categories,
    .page-login__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__content-area,
    .page-login__benefits-section,
    .page-login__login-guide-section,
    .page-login__security-section,
    .page-login__game-offerings-section,
    .page-login__promotions-section,
    .page-login__faq-section,
    .page-login__contact-cta-section {
        padding: 20px 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile button responsiveness */
    .page-login__submit-btn,
    .page-login__step-link,
    .page-login__step-btn,
    .page-login__game-link,
    .page-login__cta-btn,
    .page-login__promotion-link,
    .page-login__contact-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,
    .page-login__contact-methods {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-login__login-form-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Containers for images/videos/buttons */
    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__login-guide-section,
    .page-login__security-section,
    .page-login__game-offerings-section,
    .page-login__promotions-section,
    .page-login__faq-section,
    .page-login__contact-cta-section,
    .page-login__benefit-card,
    .page-login__guide-step-card,
    .page-login__security-item,
    .page-login__game-card,
    .page-login__promotion-card,
    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 10px 20px;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-login__benefit-icon,
.page-login__step-image,
.page-login__security-image,
.page-login__game-image,
.page-login__promotion-image {
    height: auto; /* Allow height to adjust */
    min-height: 200px; /* Enforce minimum height */
}