/* style/login.css */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--background-color, #FFFFFF);
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 0;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover; /* Desktop: cover to fill space */
    display: block;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin-top: -150px; /* Overlap image slightly for visual effect */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent; /* Text content background */
}

.page-login__main-title {
    color: #017439; /* Use brand color for H1 */
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 90%;
}

.page-login__description {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
    max-width: 80%;
}

.page-login__login-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin-top: 30px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.page-login__login-title {
    color: #017439;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

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

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

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

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

.page-login__checkbox-label {
    color: #555555;
}

.page-login__forgot-password {
    color: #017439;
    text-decoration: none;
    font-weight: 500;
}

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

.page-login__btn-login {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #C30808; /* Custom login button color */
    color: #FFFF00; /* Custom login font color */
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.page-login__btn-login:hover {
    background-color: #a00606;
}

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

.page-login__register-link {
    color: #C30808; /* Custom register link color */
    text-decoration: none;
    font-weight: 600;
}

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

/* General Section Styling */
.page-login__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

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

.page-login__dark-section .page-login__section-title,
.page-login__dark-section .page-login__feature-title,
.page-login__dark-section .page-login__safety-title {
    color: #ffffff;
}

.page-login__dark-section .page-login__section-description,
.page-login__dark-section .page-login__feature-text,
.page-login__dark-section .page-login__safety-text,
.page-login__dark-section .page-login__read-more {
    color: #f0f0f0;
}

.page-login__dark-section .page-login__read-more:hover {
    color: #FFFF00;
}

/* Light Section Specifics */
.page-login__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 60px 20px;
}

/* Features Section */
.page-login__features-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-login__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.page-login__feature-item {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-login__feature-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* Games Overview Section */
.page-login__games-overview {
    padding: 60px 20px;
    background-color: #f5f5f5;
    text-align: center;
}

.page-login__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.page-login__game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-decoration: none;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__game-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 15px 0 5px 0;
    color: #017439;
}

.page-login__game-desc {
    font-size: 0.95rem;
    padding: 0 15px 15px 15px;
    color: #555555;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 14px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

.page-login__btn-primary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

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

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

/* Promo Section */
.page-login__promo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: left;
}

.page-login__promo-content {
    flex: 1;
    min-width: 300px;
}

.page-login__promo-content .page-login__section-title {
    text-align: left;
    color: #017439;
}

.page-login__promo-content .page-login__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-login__promo-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-login__promo-item {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1.05rem;
    color: #333333;
}

.page-login__promo-item::before {
    content: '✓';
    color: #017439;
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.page-login__promo-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Safety Section */
.page-login__safety-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-login__safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.page-login__safety-item {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__safety-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__safety-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-login__safety-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-login__read-more {
    color: #FFFF00; /* Yellow for contrast on dark background */
    text-decoration: none;
    font-weight: 500;
}

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

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

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

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

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

.page-login__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #017439;
    margin-left: 15px;
}

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

/* Contact Section */
.page-login__contact-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.page-login__contact-info {
    margin-top: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #f0f0f0;
}

.page-login__contact-info strong {
    color: #ffffff;
}

.page-login__contact-info a {
    color: #FFFF00;
    text-decoration: none;
}

.page-login__contact-info a:hover {
    text-decoration: underline;
}

/* FAQ Answer */
.page-login__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1rem;
    color: #555555;
    text-align: left;
}

.page-login__faq-answer p {
    margin-bottom: 10px;
}

.page-login__faq-answer a {
    color: #017439;
    text-decoration: none;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__hero-content {
        margin-top: -100px;
    }

    .page-login__promo-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .page-login__promo-content .page-login__section-title,
    .page-login__promo-content .page-login__section-description {
        text-align: center;
    }

    .page-login__promo-list {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

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

    /* Hero Section */
    .page-login__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-login__hero-image-wrapper {
        max-height: 400px; /* Adjust max height for mobile */
    }

    .page-login__hero-image {
        object-fit: contain !important; /* Mobile: contain to show full image, prevent cropping */
        aspect-ratio: unset !important;
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-login__hero-content {
        margin-top: 0;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        max-width: 100%;
    }

    .page-login__description {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .page-login__login-card {
        padding: 20px;
        max-width: 100%;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__login-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

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

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

    .page-login__btn-login,
    .page-login__register-link {
        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;
    }

    /* General Section Styling */
    .page-login__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 15px;
    }

    .page-login__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Dark Section Specifics */
    .page-login__dark-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Light Section Specifics */
    .page-login__light-bg {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Features Section */
    .page-login__features-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__feature-item {
        padding: 20px;
    }

    /* Games Overview Section */
    .page-login__game-categories {
        grid-template-columns: 1fr;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__game-img {
         /* Adjust height for mobile */
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Promo Section */
    .page-login__promo-section {
        flex-direction: column;
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__promo-content .page-login__section-title,
    .page-login__promo-content .page-login__section-description {
        text-align: center;
    }

    .page-login__promo-list {
        padding-left: 0;
        text-align: left;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__promo-image-wrapper {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Safety Section */
    .page-login__safety-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__safety-item {
        padding: 20px;
    }

    /* FAQ Section */
    .page-login__faq-list {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-login__faq-answer {
        font-size: 0.95rem;
        padding: 15px 20px;
    }

    /* Contact Section */
    .page-login__contact-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__contact-info {
        font-size: 1rem;
    }

    /* Universal image responsive rule */
    .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__hero-section,
    .page-login__features-section,
    .page-login__games-overview,
    .page-login__promo-section,
    .page-login__safety-section,
    .page-login__faq-section,
    .page-login__contact-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}