/* style/login.css */
/* General styling for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background: transparent; /* Inherit from body (var(--dark-bg-1)) */
}

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

.page-login__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('[GALLERY:login_hero_bg:1920x1080:vn88,login,hero,background,dynamic]') no-repeat center center/cover;
    color: #ffffff;
    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.7); /* Dark overlay for text readability */
    z-index: 1;
}

.page-login__hero-section > .page-login__container {
    position: relative;
    z-index: 2;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #D4AF37; /* Primary color for title */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.page-login__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-login__login-form-wrapper {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 40px auto 0;
    gap: 30px;
}

.page-login__form-illustration {
    flex: 1;
    min-width: 300px;
}

.page-login__form-illustration img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

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

.page-login__form-heading {
    font-size: 2em;
    color: #D4AF37;
    margin-bottom: 25px;
    text-align: center;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #B22222;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #aaaaaa;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

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

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #D4AF37;
}

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

.page-login__forgot-password-link {
    color: #D4AF37;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #e0b84d;
}

.page-login__submit-button {
    width: 100%;
    padding: 15px 25px;
    background-color: #D4AF37;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.page-login__submit-button:hover {
    background-color: #e0b84d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

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

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

.page-login__register-link:hover {
    color: #D4AF37;
}

/* About VN88 Section */
.page-login__about-vn88-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    text-align: center;
    color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #D4AF37;
    font-weight: bold;
}

.page-login__section-intro {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px;
    color: #cccccc;
}

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

.page-login__benefit-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-card img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px;
}

.page-login__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #D4AF37;
    font-weight: bold;
}

.page-login__card-description {
    font-size: 1em;
    color: #cccccc;
    flex-grow: 1;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    text-align: center;
    color: #f0f0f0;
}

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

.page-login__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-login__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: #D4AF37;
    pointer-events: none;
}

.page-login__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #B22222;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-login__faq-item.active .page-login__faq-toggle {
    color: #D4AF37;
    transform: rotate(45deg);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: rgba(255, 255, 255, 0.03);
    color: #cccccc;
    text-align: left;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

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

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

.page-login__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #B22222;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.4);
    border: none;
    cursor: pointer;
    text-align: center;
}

.page-login__cta-button:hover {
    background-color: #D4AF37;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.6);
}

.page-login__cta-button--secondary {
    background-color: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    box-shadow: none;
}

.page-login__cta-button--secondary:hover {
    background-color: #D4AF37;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__description {
        font-size: 1.1em;
    }
    .page-login__login-form-wrapper {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
    }
    .page-login__form-illustration {
        min-width: unset;
        width: 100%;
    }
    .page-login__login-form {
        min-width: unset;
        width: 100%;
    }
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-login__section-intro {
        margin-bottom: 40px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 768px) {
        /* Ensure content sections are within bounds */
        .page-login__hero-section,
        .page-login__about-vn88-section,
        .page-login__benefits-section,
        .page-login__faq-section,
        .page-login__cta-section {
            padding-left: 15px !important;
            padding-right: 15px !important;
            box-sizing: border-box !important;
            overflow: hidden !important;
            width: 100% !important;
            max-width: 100% !important;
        }

        .page-login__hero-section {
            padding-top: var(--header-offset, 120px) !important;
            padding-bottom: 60px;
        }

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

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

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

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

        .page-login__submit-button,
        .page-login__cta-button {
            padding: 12px 20px;
            font-size: 1.1em;
            max-width: 100% !important;
            width: 100% !important;
            box-sizing: border-box !important;
            white-space: normal !important;
            word-wrap: break-word !important;
        }
        
        .page-login__register-text {
            font-size: 0.95em;
        }

        .page-login__section-title {
            font-size: 2em;
        }
        .page-login__section-intro {
            font-size: 0.95em;
            margin-bottom: 30px;
        }

        .page-login__benefit-card {
            padding: 20px;
        }
        .page-login__card-title {
            font-size: 1.5em;
        }
        .page-login__card-description {
            font-size: 0.9em;
        }

        .page-login__faq-question {
            padding: 15px;
        }
        .page-login__faq-question h3 {
            font-size: 1em;
        }
        .page-login__faq-toggle {
            font-size: 20px;
            width: 24px;
            height: 24px;
        }
        .page-login__faq-answer {
            padding: 0 15px;
        }
        .page-login__faq-item.active .page-login__faq-answer {
            padding: 15px !important;
    }
}