/* style/login.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

:root {
    --vf88-green-main: #11A84E;
    --vf88-green-secondary: #22C768;
    --vf88-bg-dark: #08160F;
    --vf88-card-bg: #11271B;
    --vf88-text-main: #F2FFF6;
    --vf88-text-secondary: #A7D9B8;
    --vf88-border: #2E7A4E;
    --vf88-glow: #57E38D;
    --vf88-gold: #F2C14E;
    --vf88-divider: #1E3A2A;
    --vf88-deep-green: #0A4B2C;
    --vf88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-login {
    font-family: 'Arial', sans-serif;
    color: var(--vf88-text-main); /* Mặc định chữ sáng trên nền tối */
    background-color: var(--vf88-bg-dark); /* Nền tối */
}

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

.page-login__dark-section {
    background-color: var(--vf88-bg-dark);
    color: var(--vf88-text-main);
}

.page-login__light-bg {
    background-color: #f8f9fa; /* Nền sáng hơn để tạo độ tương phản */
    color: #333333; /* Chữ tối trên nền sáng */
}

.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Chỉ một khoảng cách nhỏ từ header */
    overflow: hidden;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-login__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--vf88-text-main);
    margin-bottom: 20px;
    /* font-size sẽ được điều chỉnh tự động hoặc qua clamp nếu cần thiết */
}

.page-login__description {
    font-size: 1.15em;
    line-height: 1.6;
    color: var(--vf88-text-secondary);
    margin-bottom: 30px;
}

.page-login__login-form-wrapper {
    background: var(--vf88-card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 30px;
    border: 1px solid var(--vf88-border);
}

.page-login__form-title {
    color: var(--vf88-gold);
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--vf88-text-main);
    font-weight: 600;
}

.page-login__form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--vf88-border);
    border-radius: 8px;
    background-color: var(--vf88-deep-green);
    color: var(--vf88-text-main);
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: var(--vf88-text-secondary);
    opacity: 0.7;
}

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.page-login__cta-button {
    display: block;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background: var(--vf88-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-login__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--vf88-gold);
    border: 2px solid var(--vf88-gold);
}

.page-login__btn-secondary:hover {
    background-color: var(--vf88-gold);
    color: var(--vf88-bg-dark);
    transform: translateY(-2px);
}

.page-login__forgot-password {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95em;
}

.page-login__forgot-password a {
    color: var(--vf88-text-secondary);
    text-decoration: none;
}

.page-login__forgot-password a:hover {
    color: var(--vf88-gold);
    text-decoration: underline;
}

.page-login__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: var(--vf88-text-main);
    line-height: 1.3;
}

.page-login__light-bg .page-login__section-title {
    color: #333333;
}

.page-login__section-description {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: var(--vf88-text-secondary);
}

.page-login__light-bg .page-login__section-description {
    color: #555555;
}

.page-login__features-section, 
.page-login__guide-section, 
.page-login__troubleshoot-section, 
.page-login__enjoy-section, 
.page-login__promotions-section, 
.page-login__faq-section,
.page-login__cta-section {
    padding: 80px 0;
}

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

.page-login__card {
    background: var(--vf88-card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--vf88-divider);
    height: 100%; /* Đảm bảo chiều cao bằng nhau */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-login__light-bg .page-login__card {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-login__light-bg .page-login__card .page-login__card-title {
    color: #333333;
}

.page-login__light-bg .page-login__card p {
    color: #555555;
}

.page-login__feature-icon, 
.page-login__game-image, 
.page-login__promo-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}

.page-login__card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--vf88-gold);
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-login__card p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--vf88-text-secondary);
    flex-grow: 1;
}

.page-login__step-card .page-login__step-number {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--vf88-glow);
    margin-bottom: 20px;
}

.page-login__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

.page-login__cta-bottom p {
    font-size: 1.1em;
    color: var(--vf88-text-main);
    margin-bottom: 20px;
}

.page-login__troubleshoot-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--vf88-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__light-bg .page-login__troubleshoot-link {
    color: var(--vf88-green-main);
}

.page-login__troubleshoot-link:hover {
    text-decoration: underline;
    color: var(--vf88-glow);
}

.page-login__light-bg .page-login__troubleshoot-link:hover {
    color: var(--vf88-green-secondary);
}

.page-login__game-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--vf88-button-gradient);
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.page-login__game-link:hover {
    opacity: 0.9;
}

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

.page-login__faq-item {
    background: var(--vf88-card-bg);
    border: 1px solid var(--vf88-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    cursor: pointer;
}

.page-login__faq-item[open] {
    background-color: var(--vf88-deep-green);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--vf88-text-main);
    user-select: none;
    cursor: pointer;
    list-style: none;
}

.page-login__faq-question::-webkit-details-marker {
    display: none;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--vf88-gold);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--vf88-text-secondary);
}

.page-login__faq-answer p {
    margin-bottom: 10px;
}

.page-login__faq-download-btn {
    margin-top: 15px;
}

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

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body đã có padding-top */
    }

    .page-login__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-login__main-title {
        font-size: 2.2em;
        line-height: 1.3;
    }

    .page-login__description {
        font-size: 1em;
    }

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

    .page-login__form-title {
        font-size: 1.6em;
    }

    .page-login__cta-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__form-actions,
    .page-login__cta-buttons-wrapper {
        flex-direction: column !important;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__section-title {
        font-size: 1.8em;
    }

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

    .page-login__features-section, 
    .page-login__guide-section, 
    .page-login__troubleshoot-section, 
    .page-login__enjoy-section, 
    .page-login__promotions-section, 
    .page-login__faq-section,
    .page-login__cta-section,
    .page-login__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-login__features-grid, 
    .page-login__steps-grid, 
    .page-login__troubleshoot-grid, 
    .page-login__games-grid, 
    .page-login__promotions-grid {
        grid-template-columns: 1fr;
    }

    .page-login__feature-icon, 
    .page-login__game-image, 
    .page-login__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__card-title {
        font-size: 1.3em;
    }
    .page-login__description,
    .page-login__section-description,
    .page-login__card p {
        font-size: 0.9em;
    }
}