:root {
    --primary-color: #26A9E0; /* 淡蓝色 */
    --secondary-color: #EA7C07; /* 登录按钮色 */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f8f8;
    --border-color: #e0e0e0;
}

.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background body */
    background-color: var(--background-light); /* Light background for overall page content */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    overflow: hidden; /* Ensure no overflow */
    background-color: var(--primary-color); /* Add a background color to the section */
    color: var(--text-light); /* Light text on primary background */
}

.page-login__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

.page-login__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    /* No filter allowed */
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-login__main-title {
    font-size: 3em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
    max-width: 800px; /* Limit H1 width for readability */
    margin-left: auto;
    margin-right: auto;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color); /* Use specific login color */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__cta-button:hover {
    background: #c26506; /* Darken on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Login Form Section */
.page-login__form-section {
    padding: 60px 20px;
    background-color: var(--background-light);
    color: var(--text-dark);
    text-align: center;
}

.page-login__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.page-login__login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: var(--text-light); /* White background for the form */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

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

.page-login__form-label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.page-login__form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

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

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

.page-login__checkbox {
    margin-right: 8px;
    accent-color: var(--primary-color); /* Highlight checkbox with primary color */
}

.page-login__checkbox-label {
    color: var(--text-dark);
}

.page-login__forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    text-decoration: underline;
    color: #1f88b3;
}

.page-login__submit-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__submit-button:hover {
    background: #1f88b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__register-text {
    margin-top: 30px;
    font-size: 1em;
    color: var(--text-dark);
}

.page-login__register-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 20px;
    background-color: var(--primary-color); /* Dark background for this section */
    color: var(--text-light);
    text-align: center;
}

.page-login__benefits-section .page-login__section-title {
    color: var(--text-light);
}

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

.page-login__benefit-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on primary background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100%;
    height: auto;
    max-width: 200px; /* Max width for icons in cards */
    margin-bottom: 20px;
    object-fit: cover;
    border-radius: 5px;
    /* No filter allowed */
}

.page-login__benefit-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-login__benefit-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 60px 20px;
    background-color: var(--background-light);
    color: var(--text-dark);
    text-align: center;
}

.page-login__troubleshooting-intro {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-dark);
}

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

.page-login__troubleshooting-item {
    background: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.page-login__troubleshooting-heading {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-login__troubleshooting-item p {
    font-size: 0.95em;
    color: var(--text-dark);
}

.page-login__contact-support-text {
    margin-top: 40px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-login__contact-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__contact-link:hover {
    text-decoration: underline;
    color: #c26506;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.page-login__faq-section .page-login__section-title {
    color: var(--text-light);
}

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

details.page-login__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent background for FAQ items */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details.page-login__faq-item summary.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-light);
    font-weight: 600;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
    display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}
.page-login__faq-qtext {
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-light);
}
.page-login__faq-toggle {
    font-size: 2em;
    font-weight: bold;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
    transition: transform 0.3s ease;
}
details.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X */
}
details.page-login__faq-item .page-login__faq-answer {
    padding: 0 25px 20px;
    background: rgba(255, 255, 255, 0.02); /* Lighter background for answer */
    border-radius: 0 0 8px 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1em;
    text-align: left;
}
details.page-login__faq-item .page-login__faq-answer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__benefits-grid,
    .page-login__troubleshooting-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__hero-image {
        margin-bottom: 20px;
    }
    .page-login__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
    }
    .page-login__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
}