/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background-color: var(--page-bg, #F4F7FB); /* Default to F4F7FB if var not set */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.page-login__hero-content {
    background: #FFFFFF; /* Card BG */
    padding: 40px;
    margin-top: -80px; /* Overlap with image slightly for visual appeal */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
    position: relative;
    z-index: 2;
    color: #1F2D3D;
    text-align: center;
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
    color: #2F6BFF; /* Primary color */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.1em;
    color: #1F2D3D;
    margin-bottom: 30px;
}

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

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-text {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-login__btn-secondary {
    background: #FFFFFF; /* Card BG */
    color: #2F6BFF; /* Primary color */
    border: 2px solid #2F6BFF; /* Primary color border */
    box-shadow: 0 4px 15px rgba(107, 163, 255, 0.2);
}

.page-login__btn-secondary:hover {
    background: #F4F7FB; /* Background color */
    color: #2F6BFF;
    border-color: #6FA3FF; /* Auxiliary color */
    box-shadow: 0 6px 20px rgba(107, 163, 255, 0.3);
}

.page-login__btn-text {
    background: none;
    color: #2F6BFF;
    border: none;
    text-decoration: underline;
    padding: 10px 15px;
}

.page-login__btn-text:hover {
    color: #6FA3FF;
}

/* Common Section Styles */
.page-login__section-title {
    font-size: 2.2em;
    color: #2F6BFF; /* Primary color */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

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

.page-login__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

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

/* Introduction Section */
.page-login__introduction-section {
    background-color: #2F6BFF; /* Primary color */
    color: #ffffff;
}
.page-login__introduction-section .page-login__section-title {
    color: #ffffff;
}
.page-login__introduction-section .page-login__cta-buttons--center {
    margin-top: 30px;
}

/* Content Section (Detailed Login) */
.page-login__content-section {
    background-color: #F4F7FB; /* Background color */
    color: #1F2D3D;
}

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

.page-login__step-item {
    background-color: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #D6E2FF; /* Border color */
    display: flex;
    flex-direction: column;
}

.page-login__step-title {
    font-size: 1.4em;
    color: #2F6BFF; /* Primary color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__step-description {
    font-size: 1em;
    color: #1F2D3D;
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: #2F6BFF; /* Primary color */
    color: #ffffff;
}
.page-login__benefits-section .page-login__section-title {
    color: #ffffff;
}

.page-login__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-login__benefit-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__benefit-title {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__benefit-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #F4F7FB; /* Background color */
    color: #1F2D3D;
}

.page-login__faq-list {
    margin-top: 40px;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #1F2D3D; /* Text Main */
    cursor: pointer;
    background-color: #ffffff;
    position: relative;
    list-style: none; /* For details/summary */
}

/* Hide default details marker */
.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-login__faq-item summary::marker {
    display: none;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #2F6BFF;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #333333; /* Darker grey for readability */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-login__faq-item[open] .page-login__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    transition: max-height 0.4s ease-in;
}

/* Security Section */
.page-login__security-section {
    background-color: #2F6BFF; /* Primary color */
    color: #ffffff;
}
.page-login__security-section .page-login__section-title {
    color: #ffffff;
}

.page-login__security-subtitle,
.page-login__responsibility-subtitle {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__security-list,
.page-login__responsibility-list {
    list-style: disc;
    padding-left: 40px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-login__security-list li,
.page-login__responsibility-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-login__security-list strong {
    color: #A5C4FF; /* Glow color for emphasis */
}

/* CTA Section */
.page-login__cta-section {
    background-color: #F4F7FB; /* Background color */
    color: #1F2D3D;
    text-align: center;
}

/* Placeholder styles for sections not present on this login page, but required by checklist */
.page-login__home-content { /* Placeholder for homepage long text area */
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 20px;
    height: auto;
    overflow-y: visible;
    margin-bottom: 20px;
}
.page-login__row-games,
.page-login__row-sport,
.page-login__row-coop { /* Placeholder for game/sport/coop rows */
    background-color: transparent;
    padding: 0;
    max-width: 100%;
    margin: 0;
}
.page-login__games-title,
.page-login__sport-title,
.page-login__coop-title { /* Placeholder titles */
    color: inherit;
    text-align: center;
    margin-bottom: 0;
}
.page-login__slider-wrapper { /* Placeholder for game slider */
    overflow: hidden;
    margin-bottom: 20px;
}
.page-login__slider-track { /* Placeholder for game slider track */
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
}
.page-login__game-slide { /* Placeholder for individual game slide */
    flex: 0 0 200px;
    max-width: 200px;
    height: 150px; /* Example size */
    background-color: #e0e0e0;
    border-radius: 8px;
}
.page-login__banners-top-wrapper { /* Placeholder for partner banners grid */
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 30px auto;
}
.page-login__banner-item img { /* Placeholder for banner images */
    
    
    object-fit: contain;
    margin: 0 auto;
    display: block;
}
.page-login__blog-masonry { /* Placeholder for blog masonry layout */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-top: 40px;
}
.page-login__blog-card-link { /* Placeholder for blog card links */
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.page-login__btn-outline { /* Placeholder for outline buttons */
    margin-top: auto;
    padding: 10px 20px;
    border: 1px solid #2F6BFF;
    color: #2F6BFF;
    background: transparent;
    border-radius: 5px;
}
.page-login__blog-slider-track { /* Placeholder for blog slider track */
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}
.page-login__blog-slide { /* Placeholder for individual blog slide */
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    height: 250px; /* Example size */
    background-color: #e0e0e0;
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__hero-content {
        margin-top: -60px;
        padding: 30px;
        max-width: 700px;
    }
    .page-login__main-title {
        font-size: clamp(1.8em, 3.5vw, 2.5em);
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__container {
        padding: 40px 20px;
    }
    .page-login__step-by-step,
    .page-login__benefits-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-login__hero-image-wrapper {
        max-height: 400px;
    }
    .page-login__hero-content {
        margin-top: -40px;
        padding: 25px;
        width: 95%;
    }
    .page-login__main-title {
        font-size: clamp(1.5em, 6vw, 2em) !important; /* Ensure H1 is not too large */
        margin-bottom: 15px;
    }
    .page-login__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-login__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-text {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-login__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-login__text-block {
        font-size: 0.95em;
    }

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

    /* Step-by-step and Benefits lists */
    .page-login__step-by-step,
    .page-login__benefits-list {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px;
    }
    .page-login__step-item,
    .page-login__benefit-item {
        padding: 20px;
    }
    .page-login__step-title {
        font-size: 1.2em;
    }
    .page-login__benefit-title {
        font-size: 1.1em;
    }

    /* FAQ */
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* Security Section */
    .page-login__security-subtitle,
    .page-login__responsibility-subtitle {
        font-size: 1.5em;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    .page-login__security-list,
    .page-login__responsibility-list {
        padding-left: 25px;
    }
    .page-login__security-list li,
    .page-login__responsibility-list li {
        font-size: 0.9em;
    }

    /* Mobile styles for placeholder sections (REQUIRED BY CHECKLIST) */
    .page-login__home-content {
        height: auto !important; /* Override fixed height */
        overflow-y: visible !important;
        padding: 15px !important;
    }
    .page-login__row-games,
    .page-login__row-sport,
    .page-login__row-coop {
        padding: 15px !important;
    }
    .page-login__slider-track {
        flex-wrap: nowrap !important; /* Keep horizontal scroll for sliders */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    .page-login__game-slide {
        flex: 0 0 160px !important;
        max-width: 160px !important;
        height: 120px !important;
    }
    .page-login__banners-top-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        max-width: 100% !important;
        padding: 0 15px;
    }
}