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

/* General page styling */
.page-login {
    color: #ffffff; /* Body background is #000000, so text needs to be light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
}

.page-login__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.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-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-login__hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
    color: #ffffff;
}

.page-login__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for title */
    font-weight: bold;
    line-height: 1.2;
}

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

.page-login__form-wrapper {
    flex: 0 0 auto;
    width: 400px;
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for form background */
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-sizing: border-box;
}

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

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

.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 rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-input:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.5);
}

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

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

.page-login__btn-submit a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.page-login__btn-submit:hover {
    background-color: #d16e06;
}

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
    font-size: 0.95em;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #5ab1e9;
}

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

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

.page-login__register-prompt a:hover {
    color: #5ab1e9;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background: #0d0d0d; /* Slightly lighter dark background for this section */
    color: #ffffff;
}

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

.page-login__benefit-card {
    background: rgba(38, 169, 224, 0.1); /* Transparent brand color */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-login__benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__benefit-icon {
    width: 100%; /* Ensure images are responsive */
    height: auto;
    max-height: 200px; /* Limit height for uniform look */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

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

/* Game Showcase Section */
.page-login__game-showcase {
    padding: 80px 0;
    background: #1a1a1a; /* Another dark background variation */
    color: #ffffff;
}

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

.page-login__game-card {
    display: block;
    background: rgba(255, 255, 255, 0.08); /* Transparent white */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    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(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-login__game-card h3,
.page-login__game-card p {
    padding: 0 20px;
}

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

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

/* Video Section */
.page-login__video-section {
    padding: 80px 0;
    background: #000000; /* Darkest background for video */
    color: #ffffff;
    text-align: center;
}

.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-login__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.page-login__video-caption {
    margin-top: 20px;
    font-size: 1em;
    color: #cccccc;
}

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

.page-login__faq-list {
    max-width: 900px;
    margin: 50px auto 0 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;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: rgba(38, 169, 224, 0.1); /* Light transparent brand color for question header */
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.2);
}

.page-login__faq-title {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
    font-weight: bold;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to a cross */
}

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

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

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

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

.page-login__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none;
    margin-top: 30px;
}

.page-login__btn-primary:hover {
    background-color: #1e87bb;
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 3em;
    }

    .page-login__hero-content {
        padding-right: 20px;
    }

    .page-login__form-wrapper {
        width: 380px;
        padding: 30px;
    }

    .page-login__benefits-grid,
    .page-login__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: auto;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
        padding-bottom: 50px;
    }

    .page-login__hero-container {
        flex-direction: column;
        padding: 0 15px;
    }

    .page-login__hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }

    .page-login__hero-title {
        font-size: 2.5em;
    }

    .page-login__hero-description {
        font-size: 1em;
    }

    .page-login__form-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 30px 20px;
    }

    .page-login__section-title {
        font-size: 2em;
        padding: 0 15px;
    }

    .page-login__section-description {
        font-size: 1em;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .page-login__benefits-section,
    .page-login__game-showcase,
    .page-login__video-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 50px 0;
    }

    .page-login__benefits-grid,
    .page-login__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-login__benefit-card,
    .page-login__game-card {
        padding: 20px;
    }

    .page-login__game-title {
        font-size: 1.2em;
    }

    .page-login__game-image {
        height: 180px;
    }

    /* Video responsiveness */
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__form-wrapper,
    .page-login__benefits-grid,
    .page-login__game-grid,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsiveness */
    .page-login__btn-submit,
    .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__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-login__faq-question {
        padding: 15px;
    }

    .page-login__faq-title {
        font-size: 1.1em;
    }

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

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 2em;
    }

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

    .page-login__btn-submit,
    .page-login__btn-primary {
        font-size: 1em;
        padding: 12px 20px;
    }
}