/* General styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

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

.page-login__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-login__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #11A84E 0%, #22C768 100%);
    border-radius: 2px;
}

.page-login__section-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, relies on body padding-top */
    padding-bottom: 50px;
    overflow: hidden;
    background-color: #08160F; /* Background */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1920px; /* Max width for the image */
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    width: 100%;
}

.page-login__main-title {
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    font-size: clamp(2em, 4vw + 1rem, 3.5em);
}

.page-login__description {
    font-size: 1.15em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-card {
    background-color: #11271B; /* Card B G */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #2E7A4E; /* Border */
}

.page-login__card-title {
    font-size: 1.8em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 30px;
    text-align: center;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
}

.page-login__form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    background-color: rgba(17, 168, 78, 0.1); /* Slightly transparent main color */
    color: #F2FFF6; /* Text Main */
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #A7D9B8; /* Text Secondary */
    opacity: 0.7;
}

.page-login__form-input:focus {
    outline: none;
    border-color: #2AD16F; /* Button gradient start color */
    box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 4px;
    background-color: rgba(17, 168, 78, 0.1);
    cursor: pointer;
    position: relative;
    top: -1px;
}

.page-login__checkbox:checked {
    background-color: #11A84E; /* Main color */
    border-color: #11A84E;
}

.page-login__checkbox:checked::before {
    content: '✔';
    display: block;
    color: #F2FFF6; /* Text Main */
    font-size: 14px;
    line-height: 1;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.page-login__checkbox-label {
    color: #A7D9B8; /* Text Secondary */
    cursor: pointer;
}

.page-login__forgot-password-link {
    color: #2AD16F; /* Button gradient start color */
    text-decoration: none;
}

.page-login__forgot-password-link:hover {
    text-decoration: underline;
    color: #57E38D; /* Glow */
}

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    color: #F2FFF6; /* Text Main */
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-login__register-text {
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-top: 25px;
    font-size: 0.95em;
}

.page-login__register-link {
    color: #2AD16F; /* Button gradient start color */
    text-decoration: none;
    font-weight: bold;
}

.page-login__register-link:hover {
    text-decoration: underline;
    color: #57E38D; /* Glow */
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #11271B; /* Card B G */
}

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

.page-login__benefit-item {
    background-color: rgba(17, 168, 78, 0.1); /* Semi-transparent main color */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #2E7A4E; /* Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
}

.page-login__benefit-description {
    color: #A7D9B8; /* Text Secondary */
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

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

.page-login__security-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__security-text {
    flex: 1;
}

.page-login__security-text p {
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: #2AD16F; /* Button gradient start color */
    border: 2px solid #2AD16F; /* Button gradient start color */
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: #2AD16F; /* Button gradient start color */
    color: #F2FFF6; /* Text Main */
    transform: translateY(-2px);
}

/* Games Preview Section */
.page-login__games-preview {
    padding: 80px 0;
    background-color: #11271B; /* Card B G */
}

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

.page-login__game-card {
    display: block;
    background-color: rgba(17, 168, 78, 0.1); /* Semi-transparent main color */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #2E7A4E; /* Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__game-title {
    color: #F2FFF6; /* Text Main */
    font-size: 1.4em;
    padding: 20px;
    text-align: center;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

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

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

.page-login__faq-item {
    background-color: #11271B; /* Card B G */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #F2FFF6; /* Text Main */
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
}

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

.page-login__faq-qtext {
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #2AD16F; /* Button gradient start color */
    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;
    color: #A7D9B8; /* Text Secondary */
    font-size: 1em;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(2em, 5vw + 1rem, 3.2em);
    }

    .page-login__hero-content {
        padding: 0 15px;
    }

    .page-login__login-card {
        padding: 30px;
    }

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

    .page-login__security-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-login__security-image {
        max-width: 100%;
    }

    .page-login__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-login__container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-login__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-login__hero-image {
        margin-bottom: 20px;
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 7vw + 1rem, 2.8em);
        margin-bottom: 15px;
    }

    .page-login__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__login-card {
        padding: 25px;
        border-radius: 10px;
    }

    .page-login__card-title {
        font-size: 1.5em;
        margin-bottom: 25px;
    }

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

    .page-login__form-input {
        padding: 12px 15px;
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 25px;
        gap: 10px;
    }

    .page-login__remember-me {
        margin-bottom: 5px;
    }

    /* 产品展示图区域 (Games Grid) */
    .page-login__games-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* 通用图片与容器 */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-login__container,
    .page-login__section,
    .page-login__card,
    .page-login__benefit-item,
    .page-login__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-login__security-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 按钮与按钮容器 */
    .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-direction: column !important;
        gap: 15px;
    }

    /* 其他内容模块 (Benefits and FAQ) */
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__games-preview,
    .page-login__faq-section {
        padding: 40px 0;
    }

    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

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

    .page-login__benefit-item,
    .page-login__faq-item {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

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