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

/* General Styles */
.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 (#121212) */
}

.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: #FFFFFF;
    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;
}

.page-login__dark-bg {
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #FFFFFF; /* White background */
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: url('[GALLERY:hero_main:1920x1080:sunwin_web,login,secure,vibrant]') no-repeat center center/cover;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-content {
    text-align: center;
    max-width: 600px;
    margin-right: 40px;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for register/login */
}

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

.page-login__login-card {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-left: 40px;
}

.page-login__card-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #FFFF00; /* Custom font color for register/login */
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    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;
    font-size: 0.9em;
}

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

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__checkbox-label {
    color: #f0f0f0;
}

.page-login__forgot-password {
    color: #FFFF00; /* Custom font color for register/login */
    text-decoration: none;
}

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

.page-login__btn-login {
    width: 100%;
    padding: 15px;
    background-color: #C30808; /* Custom login button color */
    color: #FFFFFF; /* Forced white text for contrast */
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    box-sizing: border-box; /* Important for responsive buttons */
}

.page-login__btn-login:hover {
    background-color: #a30606;
}

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

.page-login__btn-register {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background-color: #017439; /* Brand color for register button */
    color: #FFFFFF; /* Forced white text for contrast */
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    box-sizing: border-box; /* Important for responsive buttons */
}

.page-login__btn-register:hover {
    background-color: #005a2d;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    text-align: center;
}

.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: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light background */
}

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

.page-login__benefit-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be responsive */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

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

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 80px 0;
    text-align: center;
    background-color: #1a1a1a; /* Darker background for contrast with body */
    color: #ffffff;
}

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

.page-login__troubleshoot-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__troubleshoot-title {
    font-size: 1.4em;
    color: #FFFF00; /* Custom font color for register/login */
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-login__troubleshoot-link {
    color: #FFFF00; /* Custom font color for register/login */
    text-decoration: underline;
}

.page-login__troubleshoot-link:hover {
    color: #FFF;
}

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

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

.page-login__security-text {
    flex: 1;
    text-align: left;
    color: #333333; /* Dark text for light background */
}

.page-login__security-subtitle {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__security-list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #555555;
}

.page-login__security-list li {
    margin-bottom: 10px;
}

.page-login__security-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-login__security-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.page-login__responsible-gaming {
    margin-top: 60px;
    text-align: left;
    color: #333333; /* Dark text for light background */
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color */
    color: #ffffff;
    text-align: center;
}

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for register/login */
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

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

.page-login__faq-question:hover {
    background: rgba(0, 0, 0, 0.3);
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #FFFF00; /* Custom font color for register/login */
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    background: rgba(255, 255, 255, 0.05);
}

.page-login__faq-link {
    color: #FFFF00; /* Custom font color for register/login */
    text-decoration: underline;
}

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

.page-login__cta-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-login__cta-image {
    flex: 1;
    min-width: 300px;
    height: auto;
    border-radius: 10px;
    display: block;
}

.page-login__cta-text-block {
    flex: 1;
    text-align: left;
    color: #333333; /* Dark text for light background */
}

.page-login__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__cta-button {
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    box-sizing: border-box; /* Important for responsive buttons */
    flex-grow: 1;
    text-align: center;
}

.page-login__btn-download {
    background-color: #C30808; /* Custom login/register button color */
    color: #FFFFFF; /* Forced white text for contrast */
}

.page-login__btn-download:hover {
    background-color: #a30606;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-content {
        margin-right: 20px;
    }
    .page-login__login-card {
        margin-left: 20px;
    }
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        flex-direction: column;
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        text-align: center;
    }
    .page-login__hero-content {
        margin-right: 0;
        margin-bottom: 40px;
    }
    .page-login__login-card {
        margin-left: 0;
        max-width: 100%;
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__benefits-grid,
    .page-login__troubleshoot-grid {
        grid-template-columns: 1fr;
    }
    .page-login__security-content,
    .page-login__cta-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-login__security-text,
    .page-login__cta-text-block {
        text-align: center;
    }
    .page-login__security-list {
        margin-left: 0;
        text-align: left;
        list-style-position: inside;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image and video responsive rules */
    .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__cta-content,
    .page-login__security-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__troubleshooting-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important;
    }

    /* Buttons responsive rules */
    .page-login__cta-button,
    .page-login__btn-login,
    .page-login__btn-register,
    .page-login__btn-download,
    .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__cta-buttons {
      display: flex;
      flex-direction: column; /* Mobile vertical stacking */
    }
}