/* style/login.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Base styles for the 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; /* Body background is handled by shared.css */
}

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

/* Color contrast enforcement based on body background (#0a0a0a - dark) */
.page-login__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 70vh; /* Minimum height for hero section */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
}

.page-login__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-login__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
}

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

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

.page-login__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Login Form Wrapper */
.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    margin: 30px auto 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__form-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #EA7C07; /* Login color */
    text-align: center;
}

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

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

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

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

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

.page-login__checkbox-label {
    color: #f0f0f0;
    font-size: 0.95em;
}

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
    font-size: 0.95em;
}

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

.page-login__login-button {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #EA7C07; /* Login button color */
    color: #ffffff;
    border: none;
}

.page-login__login-button:hover {
    background-color: #d46c05;
}

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

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

.page-login__register-link:hover {
    text-decoration: underline;
}

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

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

.page-login__content-text {
    font-size: 1em;
    text-align: justify;
    max-width: 900px;
    margin: 40px auto;
}

/* Advantages Section */
.page-login__advantages-section {
    padding: 80px 0;
}

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

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

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

.page-login__advantage-icon {
    width: 200px; /* Min image size 200px */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__advantage-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for title */
}

.page-login__advantage-text {
    font-size: 0.95em;
    color: #555555;
}

/* Games Section */
.page-login__games-section {
    padding: 80px 0;
}

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

.page-login__game-card {
    background-color: rgba(255, 255, 255, 0.08); /* Dark card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    padding-bottom: 20px;
}

.page-login__game-card:hover {
    transform: translateY(-5px);
}

.page-login__game-image {
    width: 100%;
    height: 200px; /* Ensure images are large enough */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-login__game-title {
    font-size: 1.6em;
    margin: 0 20px 10px;
    color: #26A9E0;
}

.page-login__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-login__game-text {
    font-size: 0.95em;
    margin: 0 20px;
    color: #f0f0f0;
}

/* Promotions Section */
.page-login__promotions-section {
    padding: 80px 0;
}

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

.page-login__promotion-card {
    background-color: #f8f8f8; /* Light background for card */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light background */
    padding-bottom: 20px;
}

.page-login__promotion-card:hover {
    transform: translateY(-5px);
}

.page-login__promotion-image {
    width: 100%;
    height: 220px; /* Ensure images are large enough */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-login__promotion-title {
    font-size: 1.6em;
    margin: 0 20px 10px;
    color: #26A9E0;
}

.page-login__promotion-text {
    font-size: 0.95em;
    margin: 0 20px 20px;
    color: #555555;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
}

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

.page-login__feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.08); /* Dark background for card */
    color: #ffffff; /* Light text for dark background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-login__feature-icon {
    width: 200px; /* Min image size 200px */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

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

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    font-size: 1.15em;
    color: #333333;
    margin: 0;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Change to 'x' or '-' */
}

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

.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: 0.95em;
}

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

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