.page-login {
    background-color: #08162B; /* Deep Navy from custom colors */
    color: #F3F8FF; /* Text Main from custom colors */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px;
}

.page-login__hero-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for large screens */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-login__hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* Ensure content is above any potential background */
    z-index: 1;
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
    font-weight: bold;
    color: #F2C14E; /* Gold from custom colors */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #AFC4E8; /* Text Secondary from custom colors */
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color from custom colors */
    color: #F3F8FF; /* Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Gold */
    border: 2px solid #F2C14E; /* Gold border */
}

.page-login__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
}

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #10233F; /* Card BG from custom colors */
    border-top: 1px solid #1B3357; /* Divider */
    border-bottom: 1px solid #1B3357; /* Divider */
}

.page-login__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-login__form-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.05em;
    color: #AFC4E8; /* Text Secondary */
}

.page-login__login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: #08162B; /* Deep Navy */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #244D84; /* Border from custom colors */
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #F3F8FF; /* Text Main */
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #244D84; /* Border */
    border-radius: 5px;
    background-color: #1B3357; /* Divider - darker background for input */
    color: #F3F8FF; /* Text Main */
    font-size: 1em;
    box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #1D5FD1; /* Auxiliary color */
}

.page-login__checkbox-label {
    color: #AFC4E8; /* Text Secondary */
}

.page-login__forgot-password {
    color: #1D5FD1; /* Auxiliary color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #4FA8FF; /* Glow */
    text-decoration: underline;
}

.page-login__submit-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
    color: #F3F8FF; /* Text Main */
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-login__submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__no-account-text {
    text-align: center;
    margin-top: 25px;
    color: #AFC4E8; /* Text Secondary */
}

.page-login__register-link {
    color: #F2C14E; /* Gold */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

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

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

.page-login__benefit-card {
    background-color: #10233F; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #244D84; /* Border */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-login__benefit-card img {
    width: 100%;
    max-width: 300px; /* Max width for benefit images */
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-login__benefit-description {
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
}

/* Security Section */
.page-login__security-section {
    padding: 60px 0;
    background-color: #08162B; /* Deep Navy */
    text-align: center;
}

.page-login__security-description {
    font-size: 1.05em;
    margin-bottom: 40px;
    color: #AFC4E8; /* Text Secondary */
}

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

.page-login__feature-item {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.page-login__feature-title {
    font-size: 1.4em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__feature-text {
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-login__learn-more-link {
    color: #1D5FD1; /* Auxiliary color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__learn-more-link:hover {
    color: #4FA8FF; /* Glow */
    text-decoration: underline;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #10233F; /* Card BG */
    border-top: 1px solid #1B3357; /* Divider */
}

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

.page-login__faq-item {
    background-color: #08162B; /* Deep Navy */
    border: 1px solid #244D84; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F3F8FF; /* Text Main */
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #F2C14E; /* Gold */
    list-style: none; /* For details/summary */
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 25px;
    font-size: 1em;
    line-height: 1.6;
    color: #AFC4E8; /* Text Secondary */
}

/* Download CTA Section */
.page-login__download-cta {
    padding: 60px 0;
    background-color: #08162B; /* Deep Navy */
    text-align: center;
    border-top: 1px solid #1B3357; /* Divider */
}

.page-login__download-description {
    font-size: 1.05em;
    margin-bottom: 30px;
    color: #AFC4E8; /* Text Secondary */
}

.page-login__download-cta img {
    max-width: 400px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Contact CTA Section */
.page-login__contact-cta {
    padding: 60px 0;
    background-color: #10233F; /* Card BG */
    text-align: center;
    border-top: 1px solid #1B3357; /* Divider */
}

.page-login__contact-description {
    font-size: 1.05em;
    margin-bottom: 30px;
    color: #AFC4E8; /* Text Secondary */
}

/* Copyright Section */
.page-login__copyright-section {
    padding: 30px 0;
    background-color: #08162B;
    text-align: center;
    border-top: 1px solid #1B3357;
}

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


/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* HERO 主图区域 */
    .page-login__hero-section {
        padding-top: 10px; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-login__hero-image img {
        max-height: 400px; /* Adjust max height for mobile hero */
        width: 100% !important;
        height: auto !important;
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 8vw, 2.2em); /* Adjust H1 size for mobile */
        margin-bottom: 15px;
    }

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

    /* 按钮与按钮容器 */
    .page-login__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to button container */
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__submit-button,
    .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; /* Ensure internal padding for text */
        padding-right: 15px;
    }

    .page-login__section-title {
        font-size: clamp(1.5em, 7vw, 2em); /* Adjust section title size for mobile */
        margin-bottom: 25px;
    }

    /* 长文区 (Form section, Benefits, Security, FAQ, CTA sections) */
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__download-cta,
    .page-login__contact-cta {
        padding: 40px 0; /* Adjust padding for sections */
    }

    .page-login__login-form {
        padding: 20px;
    }

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

    .page-login__benefits-grid,
    .page-login__security-features {
        grid-template-columns: 1fr; /* Single column layout for grids */
        gap: 20px;
    }

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

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

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