/* style/login.css */

/* Base styles for the login page content */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default body background is light */
}

/* Container for consistent content width */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-login__section-title {
    font-size: 2.5rem;
    color: #11A84E; /* Use main brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Section descriptions */
.page-login__section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

/* Dark background sections for contrast */
.page-login__dark-bg {
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Main text color for dark backgrounds */
    padding: 60px 0;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description {
    color: #F2FFF6; /* Ensure titles and descriptions are light on dark background */
}

/* 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; /* Ensure no overflow from image */
}

.page-login__hero-image-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 30px; /* Space between image and content */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-login__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-login__main-title {
    font-size: clamp(2rem, 4vw, 3.2rem); /* Responsive font size */
    color: #11A84E; /* Main brand color for H1 */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.2rem;
    color: #555555;
    margin-bottom: 30px;
}

.page-login__hero-section .page-login__description {
    color: #333333; /* Ensure description is dark on light background */
}

/* CTA Buttons */
.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #ffffff;
    border: none;
}

.page-login__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #11A84E; /* Brand color for secondary button text */
    border: 2px solid #11A84E;
}

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

/* Login Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #08160F; /* Custom background */
    color: #F2FFF6; /* Main text color for dark backgrounds */
}

.page-login__login-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #11271B; /* Card background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Custom border color */
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #F2FFF6; /* Main text color for dark backgrounds */
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2E7A4E;
    border-radius: 6px;
    background-color: #0A4B2C; /* Deep Green for input background */
    color: #F2FFF6;
    font-size: 1rem;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #A7D9B8; /* Secondary text color for placeholders */
}

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

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

.page-login__forgot-password {
    color: #F2C14E; /* Gold color for forgotten password link */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #57E38D; /* Glow color on hover */
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 25px;
    color: #A7D9B8; /* Secondary text color */
}

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

.page-login__register-link:hover {
    color: #57E38D; /* Glow color on hover */
}

/* Features Section */
.page-login__features-section {
    padding: 60px 0;
    background-color: #ffffff; /* Default light background */
}

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

.page-login__feature-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-login__feature-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__feature-heading {
    font-size: 1.5rem;
    color: #11A84E;
    margin-bottom: 10px;
}

.page-login__feature-text {
    font-size: 1rem;
    color: #333333;
}

/* Game Showcase Section */
.page-login__game-showcase {
    padding: 60px 0;
    background-color: #08160F; /* Custom dark background */
    color: #F2FFF6; /* Main text color for dark backgrounds */
}

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

.page-login__game-card {
    background-color: #11271B; /* Card background */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #F2FFF6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Custom border color */
    display: flex;
    flex-direction: column;
}

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

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

.page-login__game-title {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    color: #F2FFF6;
}

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

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

.page-login__promotion-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-login__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-login__promotion-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #11A84E;
    padding: 15px;
}

.page-login__promotion-text {
    font-size: 1rem;
    color: #333333;
    padding: 0 15px 15px;
    flex-grow: 1;
}

.page-login__promotion-card .page-login__btn-secondary {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
}

.page-login__all-promotions-cta {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #08160F; /* Custom dark background */
    color: #F2FFF6; /* Main text color for dark backgrounds */
}

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

.page-login__faq-item {
    background-color: #11271B; /* Card background */
    border: 1px solid #2E7A4E; /* Custom border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #F2FFF6;
    cursor: pointer;
    background-color: #11271B;
    position: relative;
    user-select: none;
}

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

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

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

.page-login__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #F2C14E; /* Gold color for toggle icon */
}

.page-login__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
}

.page-login__faq-item[open] .page-login__faq-question {
    border-bottom: 1px solid #1E3A2A; /* Divider color */
}

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

.page-login__faq-answer a {
    color: #57E38D; /* Glow color for links in FAQ answers */
    text-decoration: none;
    font-weight: bold;
}

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

/* Responsible Gambling Section */
.page-login__responsible-gambling {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff; /* Default light background */
}

.page-login__responsible-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }

    .page-login__section-title {
        font-size: 2rem;
    }

    .page-login__hero-content {
        padding: 0 15px;
    }

    .page-login__container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* General mobile padding for main content sections */
    .page-login__section,
    .page-login__card,
    .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Video responsiveness (if any, though none explicitly added for this page, it's a general rule) */
    .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: 10px !important; /* body already handles --header-offset */
    }

    /* Button responsiveness */
    .page-login__cta-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .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; /* Add padding to buttons themselves for better touch targets */
        padding-right: 15px;
    }

    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container,
    .page-login__form-actions {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px; /* Adjust gap for stacked buttons */
    }

    /* Adjust padding for sections */
    .page-login__hero-section,
    .page-login__form-section,
    .page-login__features-section,
    .page-login__game-showcase,
    .page-login__promotions-section,
    .page-login__faq-section,
    .page-login__responsible-gambling {
        padding: 40px 0;
    }

    .page-login__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-login__main-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
        margin-bottom: 10px;
    }

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

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

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

    .page-login__login-form {
        padding: 30px 20px;
    }

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

    .page-login__game-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-login__promotion-image {
        height: 180px;
    }

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

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