/* style/login.css */

/* Biến màu */
:root {
    --primary-color: #0A1931;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-card: rgba(255, 255, 255, 0.1);
    --border-light: #e0e0e0;
}

/* Cấu hình chung cho trang đăng nhập */
.page-login {
    font-family: Arial, sans-serif;
    color: var(--text-light); /* Mặc định chữ sáng trên nền tối của body */
    background-color: var(--primary-color); /* Fallback nếu shared.css không có */
}

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

.page-login__section {
    padding: 60px 0;
    text-align: center;
}

.page-login__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    text-align: center;
    padding-bottom: 60px; /* Thêm padding dưới để form không quá sát đáy */
}

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

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

.page-login__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-login__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-login__login-card {
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 10px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-color);
}

.page-login__login-card-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-weight: bold;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1em;
    color: var(--text-light);
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #1a2a40;
    color: var(--text-light);
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
    text-align: center;
}

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

.page-login__form-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

.page-login__forgot-password-link,
.page-login__register-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover,
.page-login__register-link:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: #1a2a40;
    color: var(--text-light);
}

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.page-login__benefit-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 10px;
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-login__benefit-text {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

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

.page-login__game-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

.page-login__game-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin: 15px 15px 10px 15px;
}

.page-login__game-title a {
    color: inherit;
    text-decoration: none;
}

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

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

/* Security Section */
.page-login__security-section {
    background-color: #0A1931;
    color: var(--text-light);
}

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

.page-login__security-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__security-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.page-login__security-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 10px;
}

.page-login__security-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-login__security-text {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

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

.page-login__promo-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-login__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.page-login__promo-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin: 15px 15px 10px 15px;
}

.page-login__promo-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-login__promo-text {
    font-size: 0.95em;
    line-height: 1.5;
    color: #ccc;
    padding: 0 15px 20px 15px;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: var(--secondary-color);
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    margin-top: 30px;
    box-sizing: border-box;
    text-align: center;
}

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

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

/* Guide Section */
.page-login__guide-section {
    background-color: #1a2a40;
    color: var(--text-light);
}

.page-login__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-login__guide-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
}

.page-login__guide-step-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-login__guide-list p {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

/* FAQ Section */
.page-login__faq-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-login__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

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

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

.page-login__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--secondary-color);
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

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

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

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Đủ lớn để chứa nội dung */
    padding: 15px 25px 25px 25px;
}

.page-login__faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.page-login__cta-section {
    background-color: #1a2a40;
    color: var(--text-light);
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 3em;
    }
    .page-login__hero-description {
        font-size: 1.2em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        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-card {
        padding: 30px 20px;
    }
    .page-login__login-card-title {
        font-size: 1.8em;
    }
    .page-login__form-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .page-login__section {
        padding: 40px 0;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
    }
    .page-login__benefits-grid, 
    .page-login__game-grid, 
    .page-login__security-grid, 
    .page-login__promotions-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-login__benefit-icon, .page-login__security-icon {
        width: 80px;
        height: 80px;
    }
    .page-login__benefit-title, .page-login__security-title, .page-login__game-title, .page-login__promo-title {
        font-size: 1.3em;
    }
    .page-login__guide-list {
        padding: 0 15px;
    }
    .page-login__guide-list li {
        padding: 20px;
    }
    .page-login__guide-step-title {
        font-size: 1.3em;
    }
    .page-login__faq-list {
        padding: 0 15px;
    }
    .page-login__faq-question h3 {
        font-size: 1.1em;
    }
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px 20px 20px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-login__btn-primary, .page-login__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Image/Video responsive rules */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__hero-section .page-login__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-login__login-card {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 2em;
    }
    .page-login__hero-description {
        font-size: 0.9em;
    }
    .page-login__login-card-title {
        font-size: 1.5em;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }
    .page-login__btn-primary {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__benefit-title, .page-login__security-title, .page-login__game-title, .page-login__promo-title {
        font-size: 1.2em;
    }
    .page-login__faq-question h3 {
        font-size: 1em;
    }
}