/* style/login.css */

/* Base styles for .page-login to handle body background */
.page-login {
    color: #333333; /* Default text color for light body background */
    font-family: Arial, sans-serif; /* Example font */
    line-height: 1.6;
}

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

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: #f8f8f8; /* Default light background for content area */
    color: #333333;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and text */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    filter: none !important; /* Ensure no filter on images */
}

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

.page-login__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #11A84E; /* Brand color for H1 */
    margin-bottom: 20px;
}

.page-login__intro-description {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: #333333;
}

.page-login__login-form-wrapper {
    background-color: #11271B; /* Card BG */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
}

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

.page-login__form-input::placeholder {
    color: #A7D9B8; /* Text Secondary */
    opacity: 0.7;
}

.page-login__submit-button,
.page-login__btn-primary {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__submit-button:hover,
.page-login__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-login__form-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.page-login__forgot-password-link,
.page-login__register-link {
    color: #A7D9B8; /* Text Secondary */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover,
.page-login__register-link:hover {
    color: #57E38D; /* Glow */
    text-decoration: underline;
}

/* General Section Styles */
.page-login__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    text-align: center;
    color: inherit; /* Inherit from section for dark/light variations */
}

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

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

.page-login__feature-card {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid #2E7A4E; /* Border color */
    color: #F2FFF6; /* Text Main */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-login__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #57E38D; /* Glow for titles */
}

.page-login__card-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Constrain card image size */
    margin: 15px auto 20px auto;
    border-radius: 8px;
    display: block;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    filter: none !important; /* Ensure no filter on images */
}

.page-login__card-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #A7D9B8; /* Text Secondary */
    flex-grow: 1;
}

.page-login__card-button,
.page-login__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: transparent;
    color: #57E38D; /* Glow */
    border: 2px solid #57E38D; /* Glow for border */
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__card-button:hover,
.page-login__btn-secondary:hover {
    background-color: #57E38D; /* Glow */
    color: #08160F; /* Background */
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

/* How to Login Section */
.page-login__how-to-login-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    color: #333333;
}

.page-login__login-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    max-width: 900px;
    margin: 0 auto;
}

.page-login__step-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    padding-left: 80px;
    border-left: 5px solid #11A84E; /* Main color */
}

.page-login__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 25px;
    background-color: #11A84E; /* Main color */
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.page-login__step-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #11A84E; /* Main color */
}

.page-login__step-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.page-login__step-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: 20px auto 0 auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    filter: none !important; /* Ensure no filter on images */
}

.page-login__subsection-title {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 25px;
    text-align: center;
    color: #11A84E; /* Main color */
}

.page-login__troubleshooting-list {
    list-style: disc;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
}

.page-login__list-item {
    margin-bottom: 10px;
}

/* Forgot Password Section */
.page-login__forgot-password-section {
    padding: 60px 0;
    text-align: center;
}

.page-login__info-block {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 15px;
    max-width: 700px;
    margin: 40px auto 0 auto;
    border: 1px solid #2E7A4E; /* Border color */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-login__info-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
}

/* Register CTA Section */
.page-login__register-cta-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    text-align: center;
    color: #333333;
}

.page-login__benefits-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.page-login__benefits-list .page-login__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555555;
}

.page-login__benefits-list .page-login__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #11A84E; /* Main color */
    font-weight: 700;
    font-size: 1.3rem;
    top: -2px;
}

/* Mobile App Section */
.page-login__mobile-app-section {
    padding: 60px 0;
}

.page-login__mobile-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-login__mobile-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-login__mobile-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-login__mobile-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    filter: none !important; /* Ensure no filter on images */
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    color: #333333;
}

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
    list-style: none; /* For <details> summary */
}

.page-login__faq-question::-webkit-details-marker {
    display: none; /* For <details> summary */
}

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

.page-login__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-login__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #11A84E; /* Main color */
}

.page-login__faq-item[open] .page-login__faq-question {
    background-color: #e5e5e5;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

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

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
    text-align: center;
    padding: 60px 0;
}

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

/* Divider for visual separation if needed */
.page-login__divider {
    width: 80%;
    max-width: 600px;
    height: 2px;
    background-color: #1E3A2A; /* Divider color */
    margin: 50px auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-login__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-login__hero-content {
        padding: 0 15px;
    }
}

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

    /* General responsive for images */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* General responsive for containers with images/content */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-image-wrapper,
    .page-login__login-form-wrapper,
    .page-login__feature-card,
    .page-login__step-item,
    .page-login__info-block,
    .page-login__benefits-list,
    .page-login__mobile-content-wrapper,
    .page-login__mobile-text,
    .page-login__mobile-image-wrapper,
    .page-login__faq-item,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
    }

    /* Specific padding adjustments */
    .page-login__hero-section,
    .page-login__dark-section,
    .page-login__how-to-login-section,
    .page-login__forgot-password-section,
    .page-login__register-cta-section,
    .page-login__mobile-app-section,
    .page-login__faq-section,
    .page-login__responsible-gaming-section {
        padding-left: 0;
        padding-right: 0;
    }

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

    /* Button responsive */
    .page-login__submit-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;
        padding-right: 15px;
    }

    .page-login__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }

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

    .page-login__form-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .page-login__step-item {
        padding-left: 20px; /* Adjust for smaller screens */
        border-left: none; /* Remove border for cleaner look */
        padding-top: 70px; /* Make space for number */
    }

    .page-login__step-item::before {
        left: 50%;
        transform: translateX(-50%);
        top: 15px;
    }

    .page-login__mobile-content-wrapper {
        flex-direction: column;
    }
    .page-login__mobile-text, .page-login__mobile-image-wrapper {
        min-width: unset;
        width: 100%;
    }

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

/* Ensure content area images maintain minimum size if not constrained by max-width:100% */
.page-login__content-area img,
.page-login__feature-card img,
.page-login__step-item img,
.page-login__mobile-image-wrapper img {
    min-width: 200px;
    min-height: 200px;
}