/* style/login.css */

/* Base Styles & Global Reset within page-login scope */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Main content background is transparent to show body background */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-login__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for sections to stand out */
    color: #ffffff;
    padding: 60px 0;
}

.page-login__light-bg {
    background-color: #f8f8f8;
    color: #333333;
    padding: 60px 0;
}

.page-login__main-title {
    font-size: 3.2em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for main title */
    line-height: 1.2;
}

.page-login__intro-text {
    font-size: 1.2em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #e0e0e0;
}

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

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Hero Section / Login Form */
.page-login__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-image: url('[GALLERY:hero_login:1920x1080:xo88 club,secure_login,online_casino,digital_security,vietnam]');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Add an overlay for better text readability on hero image */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.6);
}

.page-login__hero-section .page-login__container {
    z-index: 1;
}

.page-login__login-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 40px;
    max-width: 450px;
    margin: 40px auto 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-login__card-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

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

.page-login__form-group {
    display: flex;
    flex-direction: column;
}

.page-login__form-label {
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-login__form-input {
    padding: 12px 15px;
    border: 1px solid #26A9E0;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-login__form-input:focus {
    outline: none;
    border-color: #26A9E0;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
}

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

.page-login__checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #26A9E0; /* Checkbox color */
}

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

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #5ac4f8;
    text-decoration: underline;
}

.page-login__btn-login {
    background-color: #EA7C07; /* Custom login button color */
    color: #ffffff;
    padding: 14px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__btn-login:hover {
    background-color: #d16e06;
    transform: translateY(-2px);
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 25px;
    color: #e0e0e0;
}

.page-login__register-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #5ac4f8;
    text-decoration: underline;
}

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

.page-login__benefit-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #333333; /* Dark text for light background */
    transition: transform 0.3s ease;
}

.page-login__benefit-item:hover {
    transform: translateY(-5px);
}

.page-login__benefit-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-login__benefit-description {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

/* Security Section */
.page-login__security-section .page-login__section-description,
.page-login__security-section .page-login__security-tip {
    color: #e0e0e0;
}

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

.page-login__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-login__feature-icon {
    width: 100%;
    height: 180px; /* Fixed height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-login__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-login__feature-description {
    font-size: 0.95em;
    line-height: 1.7;
    color: #e0e0e0;
}

.page-login__security-tip {
    margin-top: 40px;
    font-style: italic;
    text-align: center;
    color: #cccccc;
}

/* Video Section */
.page-login__video-section {
    padding: 60px 0;
    position: relative;
    color: #333333;
}

.page-login__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer; /* Indicate clickability */
}

.page-login__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-login__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Slightly darken video */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-login__video-overlay:hover {
    opacity: 1;
}

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

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

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

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

.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);
}

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

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

.page-login__answer-text {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-login__cta-section .page-login__section-description {
    color: #e0e0e0;
    margin-bottom: 50px;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-login__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-login__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

/* Image styles - ensure no small icons, responsive */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
    object-fit: cover; /* Ensures images fill their space without distortion */
    border-radius: 8px; /* Consistent with other elements */
    /* No filter property allowed */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__login-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-login {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-login__hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .page-login__login-card {
        padding: 25px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .page-login__card-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-login__form-group {
        gap: 5px;
    }

    .page-login__form-input {
        padding: 10px 12px;
    }

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

    .page-login__btn-login {
        font-size: 1.1em;
        padding: 12px 20px;
        width: 100%;
    }

    .page-login__register-prompt {
        margin-top: 20px;
    }

    .page-login__benefits-grid,
    .page-login__security-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-login__benefit-item,
    .page-login__feature-item {
        padding: 25px;
    }

    .page-login__benefit-image,
    .page-login__feature-icon {
        height: 150px;
    }

    .page-login__video-section {
        padding: 40px 0;
    }

    .page-login__video-wrapper {
        margin: 30px auto 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to prevent video touching edges */
    }

    .page-login__video,
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/videos */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper,
    .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 for sections/containers to prevent content touching edges */
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 0;
        padding-right: 0;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.1em;
    }

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

    .page-login__faq-title {
        font-size: 1.1em;
    }

    .page-login__faq-toggle {
        font-size: 1.5em;
    }

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