.page-login {
    font-family: Arial, sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Body background handled by shared.css */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-image: url('[GALLERY:hero_login:1920x1080:cockfighting_arena,live_betting,thomo_match,excitement]');
    background-size: cover;
    background-position: center;
    min-height: 700px;
    color: #ffffff;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.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-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-login__form-wrapper {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white background for form */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__form-header {
    margin-bottom: 30px;
}

.page-login__form-title {
    font-size: 2em;
    color: #ffffff;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439; /* Brand color border */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white input background */
    color: #333333; /* Dark text for input */
    font-size: 1em;
    box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #017439; /* Brand color checkbox */
}

.page-login__checkbox-label {
    cursor: pointer;
}

.page-login__forgot-password-link {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #017439; /* Brand color on hover */
}

.page-login__submit-button {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Custom colors for login button */
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
}

.page-login__submit-button:hover {
    background-color: #a30606; /* Darker red on hover */
    transform: translateY(-2px);
}

.page-login__register-prompt {
    margin-top: 30px;
    color: #f0f0f0;
    font-size: 1em;
}

.page-login__register-text {
    display: inline;
}

.page-login__register-link {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    /* Custom colors for register link */
    color: #FFFF00; /* Register font color */
}

.page-login__register-link:hover {
    color: #017439; /* Brand color on hover */
}

/* General Section Styling */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark sections */
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0; /* Default for dark sections */
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color as background */
    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-item {
    background: rgba(0, 0, 0, 0.3); /* Darker background for items */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__benefit-item:hover {
    transform: translateY(-10px);
    background: rgba(0, 0, 0, 0.5);
}

.page-login__benefit-icon {
    width: 100%; /* Ensure images are responsive */
    height: auto;
    max-width: 200px; /* Max width for benefit icons */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for titles */
}

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

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

.page-login__cta-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: bold;
    color: #ffffff;
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-color: #017439; /* Default brand color for CTA button */
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-login__cta-button:hover {
    background-color: #005a2b; /* Darker green on hover */
    transform: translateY(-3px);
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-login__security-section .page-login__section-title {
    color: #ffffff;
}

.page-login__security-section .page-login__section-description {
    color: #f0f0f0;
}

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

.page-login__security-item {
    background: rgba(255, 255, 255, 0.08); /* Light transparent background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__security-icon {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-login__security-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00; /* Yellow for titles */
}

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

.page-login__security-footer-text {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    color: #ffffff;
}

/* Troubleshooting/FAQ Section */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-login__troubleshooting-section .page-login__section-title {
    color: #000000;
}

.page-login__troubleshooting-section .page-login__section-description {
    color: #555555;
}

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

.page-login__faq-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    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: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-login__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333333;
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439; /* Brand color for toggle */
    transition: transform 0.3s ease;
}

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

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

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

.page-login__faq-answer p {
    margin: 0;
    color: #555555;
}

.page-login__support-prompt {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #555555;
}

.page-login__support-link {
    color: #017439; /* Brand color for link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__support-link:hover {
    color: #005a2b;
    text-decoration: underline;
}

/* Register CTA Section */
.page-login__register-cta-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

.page-login__register-cta-section .page-login__section-title {
    color: #ffffff;
}

.page-login__register-cta-section .page-login__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-login__btn-large {
    padding: 18px 35px;
    font-size: 1.3em;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 40px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Custom colors for register button */
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
}

.page-login__btn-large:hover {
    background-color: #a30606; /* Darker red on hover */
    transform: translateY(-3px);
}

.page-login__register-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    object-fit: cover;
}

.page-login__register-footer {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer Info Section */
.page-login__footer-info {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #f0f0f0;
    text-align: center;
}

.page-login__footer-info .page-login__section-title {
    color: #ffffff;
    font-size: 2em;
}

.page-login__footer-info .page-login__section-description {
    color: #cccccc;
    margin-bottom: 30px;
}

.page-login__info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.page-login__info-list li a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__info-list li a:hover {
    color: #017439; /* Brand color on hover */
}

.page-login__copyright {
    font-size: 0.9em;
    color: #cccccc;
}

/* Common Image Responsive Styling */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Center images */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2.2em;
    }
    .page-login__form-wrapper {
        padding: 30px;
    }
    .page-login__hero-section {
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-login__hero-section {
        padding-top: 0 !important; /* Ensure no double padding from shared header */
        min-height: 550px;
        background-position: 70% center;
    }
    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-login__intro-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__form-wrapper {
        padding: 25px;
        max-width: 100%;
    }
    .page-login__form-title {
        font-size: 1.8em;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__forgot-password-link {
        align-self: flex-end;
    }

    /* 其他内容模块 */
    .page-login__container {
        padding: 30px 15px;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* 产品展示图区域 (benefits grid and security grid) */
    .page-login__benefits-grid,
    .page-login__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__benefit-item,
    .page-login__security-item {
        padding: 25px;
    }
    .page-login__benefit-icon,
    .page-login__security-icon {
        max-width: 100px;
    }

    /* 通用图片与容器 */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__form-wrapper,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__troubleshooting-section,
    .page-login__register-cta-section,
    .page-login__footer-info {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-login__submit-button,
    .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;
        margin-bottom: 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: 10px;
    }
    .page-login__register-link {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
    .page-login__register-text {
        display: block;
        text-align: center;
    }
    .page-login__btn-large {
        margin-bottom: 20px;
    }

    /* FAQ specific mobile styles */
    .page-login__faq-question {
        padding: 15px;
    }
    .page-login__faq-question h3 {
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 0 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px !important;
    }

    /* Footer Info List */
    .page-login__info-list {
        flex-direction: column;
        gap: 10px;
    }
}