/* style/login.css */

/* Base styles for the login page, scoped to .page-login */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body var(--dark-bg-1) */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 100px 0;
    background: url('[GALLERY:hero_login:1920x1080:login,form,678win bet,security,user_interface]') center center / cover no-repeat;
    color: #ffffff;
    text-align: center;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-login__hero-section .page-login__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-login__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    color: #f0f0f0;
}

/* Login Form Wrapper */
.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: left;
    color: #333333;
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #26A9E0; /* Brand color for title */
    text-align: center;
}

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

.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.95em;
}

.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: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #1a7bb0;
}

.page-login__submit-button {
    width: 100%;
    padding: 15px;
    background-color: #EA7C07; /* Custom color for login button */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__submit-button:hover {
    background-color: #d66f06;
}

.page-login__register-cta {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.page-login__register-text {
    color: #555555;
    margin-bottom: 15px;
}

.page-login__register-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #26A9E0; /* Brand color for register button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__register-button:hover {
    background-color: #1a7bb0;
}

/* General Section Styling */
.page-login__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles */
}

.page-login__section-description {
    font-size: 1.2em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #f0f0f0; /* Light text for dark sections */
}

/* Dark section for contrast */
.page-login__dark-section {
    background-color: #1a1a1a; /* Dark background to ensure contrast for light text */
    padding: 80px 0;
    color: #ffffff;
}

.page-login__dark-section .page-login__section-title {
    color: #ffffff; /* White title on dark background */
}

.page-login__dark-section .page-login__section-description {
    color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
}

.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: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff; /* Light text */
}

.page-login__benefit-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-login__benefit-icon {
    width: 200px; /* Min size */
    height: 150px; /* Example size for content image */
    margin: 0 auto 20px auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.page-login__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for titles */
}

.page-login__benefit-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text */
}

.page-login__security-section .page-login__section-title {
    color: #26A9E0; /* Brand color on light background */
}

.page-login__security-section .page-login__section-description {
    color: #555555;
}

.page-login__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-login__security-text {
    flex: 1;
    min-width: 300px;
}

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

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-login__security-list-item {
    background: #f9f9f9;
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__security-list-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 8px;
}

.page-login__security-list-description {
    color: #555555;
}

/* Games Section */
.page-login__games-section {
    padding: 80px 0;
}

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

.page-login__game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

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

.page-login__game-title {
    font-size: 1.4em;
    margin: 20px 15px 10px 15px;
    color: #26A9E0;
}

.page-login__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-login__game-title a:hover {
    text-decoration: underline;
}

.page-login__game-text {
    font-size: 0.95em;
    padding: 0 15px 20px 15px;
    color: #e0e0e0;
}

/* Promotions Section */
.page-login__promotions-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text */
}

.page-login__promotions-section .page-login__section-title {
    color: #26A9E0;
}

.page-login__promotions-section .page-login__section-description {
    color: #555555;
}

.page-login__promotions-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

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

.page-login__promotions-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-login__promotions-text {
    flex: 1;
    min-width: 300px;
}

.page-login__promotions-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
    color: #555555;
}

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

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
}

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus to Minus */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-login__faq-answer p {
    margin-bottom: 0;
    color: #e0e0e0;
}

/* Register Now Section */
.page-login__register-now-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
}

.page-login__register-now-section .page-login__section-title {
    color: #ffffff;
}

.page-login__register-now-section .page-login__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Buttons */
.page-login__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #EA7C07; /* Login button color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary:hover {
    background-color: #d66f06;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: #26A9E0;
    text-decoration: none;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-login__center-text {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 3em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 2.2em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
    .page-login__security-content,
    .page-login__promotions-content {
        flex-direction: column;
        text-align: center;
    }
    .page-login__security-image-wrapper,
    .page-login__promotions-image-wrapper {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 80px 0;
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__hero-title {
        font-size: 2.5em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__login-form-wrapper {
        padding: 30px;
    }
    .page-login__form-title {
        font-size: 1.8em;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Mobile specific padding for sections */
    .page-login__hero-section .page-login__container,
    .page-login__benefits-section .page-login__container,
    .page-login__security-section .page-login__container,
    .page-login__games-section .page-login__container,
    .page-login__promotions-section .page-login__container,
    .page-login__faq-section .page-login__container,
    .page-login__register-now-section .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsiveness */
    .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__image-wrapper,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }
    
    /* Mobile button responsiveness */
    .page-login__cta-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"],
    .page-login__submit-button,
    .page-login__register-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; /* Ensure flex behavior for wrapping */
        flex-direction: column; /* Stack buttons vertically */
    }
    
    /* Specific section padding adjustment for mobile, if needed */
    .page-login__security-content > div,
    .page-login__promotions-content > div {
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-login__security-image-wrapper,
    .page-login__promotions-image-wrapper {
      padding: 0;
    }

    .page-login__faq-question,
    .page-login__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}