/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #050505; /* Matching body background for consistency */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure header offset is applied here */
    padding-bottom: 100px; /* Default visual padding */
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    overflow: hidden;
    background-image: url('[GALLERY:hero_background:1920x1080:online_gambling,tai_xiu,secure_login,vietnam]');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.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__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.page-login__main-title {
    font-size: 3em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Login Form */
.page-login__form-wrapper {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
    padding: 40px;
    border-radius: 10px;
    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);
}

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

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

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

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

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

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

.page-login__form-input:focus {
    border-color: #EA7C07;
    outline: none;
}

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.page-login__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #EA7C07; /* Login button color */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

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

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

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

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

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

.page-login__link-register:hover {
    color: #EA7C07;
    text-decoration: underline;
}

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Features Section */
.page-login__features-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-login__feature-card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-login__feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-login__feature-icon {
    width: 80px; /* Adjust size based on actual image */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
    object-fit: cover;
}

.page-login__feature-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-login__feature-text {
    color: #e0e0e0;
    font-size: 0.95em;
}

/* Promotion Section */
.page-login__promo-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Another dark background shade */
}

.page-login__promo-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.page-login__promo-text-wrapper {
    flex: 1;
}

.page-login__promo-text-wrapper .page-login__section-title,
.page-login__promo-text-wrapper .page-login__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-login__promo-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
    object-fit: cover;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid #26A9E0;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: #1f8ac9;
    transform: translateY(-2px);
}

/* Call to Action Section */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #050505; /* Back to deepest dark background */
    text-align: center;
}

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

.page-login__btn-large {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.1em;
}

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

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X or 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 value */
    padding: 15px 25px 25px;
}

.page-login__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #e0e0e0;
}

.page-login__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

.page-login__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__promo-content {
        flex-direction: column;
        text-align: center;
    }
    .page-login__promo-text-wrapper .page-login__section-title,
    .page-login__promo-text-wrapper .page-login__section-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        padding-bottom: 80px; /* Adjust as needed for visual balance */
        padding-left: 15px;
        padding-right: 15px;
        min-height: 60vh;
    }
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__form-wrapper {
        padding: 30px 20px;
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-login__form-title {
        font-size: 1.8em;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        padding: 10px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-login__form-actions {
        gap: 10px;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__features-section,
    .page-login__promo-section,
    .page-login__cta-section,
    .page-login__faq-section {
        padding: 50px 0;
    }
    .page-login__feature-card {
        padding: 20px;
    }
    .page-login__feature-title {
        font-size: 1.3em;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-login__btn-large {
        min-width: unset;
        width: 100%;
    }
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px;
    }
    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__promo-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
}

/* Ensure content area images are not too small */
.page-login__feature-icon,
.page-login__promo-image {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Color contrast adjustments for specific elements on dark background */
.page-login__dark-bg {
    color: #ffffff; /* Deep dark background, so light text */
}

.page-login__light-bg {
    color: #333333; /* For any light background (not used directly here but as example) */
    background: #ffffff;
}