/* style/login.css */

/* Base Styles */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background #f5f5f5 */
    background-color: #f5f5f5; /* Explicitly set for content area if needed, but body is already light */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: 0; /* Assuming shared.css handles body padding-top for header offset */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Prevent background image overflow */
}

.page-login__hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white card */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
    text-align: left;
    color: #333333; /* Dark text for the card content */
    position: relative;
    z-index: 1;
}

.page-login__main-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #017439; /* Brand green for main title */
    text-align: center;
}

.page-login__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
    text-align: center;
}

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input:focus {
    border-color: #017439;
    outline: none;
    box-shadow: 0 0 5px rgba(1, 116, 57, 0.3);
}

.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;
}

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

.page-login__forgot-password-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
}

.page-login__btn-submit:hover {
    background-color: #a00606; /* Darker red on hover */
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: #555555;
}

.page-login__register-link {
    display: inline-block;
    margin-top: 10px;
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-login__register-link:hover {
    background-color: #a00606; /* Darker red on hover */
}

/* General Section Styles */
.page-login__section-title {
    font-size: 2em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-login__benefit-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__benefit-icon {
    width: 100%; /* Occupy card width */
    height: auto;
    max-width: 200px; /* Example max width for icons if they are smaller */
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-login__benefit-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-login__benefit-description {
    color: #555555;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #017439; /* Brand green background */
    color: #ffffff; /* White text on dark background */
}

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

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

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

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

.page-login__security-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-login__security-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFFF00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
    background-size: 18px;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1em;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ffffff; /* White background for secondary button */
    color: #017439; /* Brand green text */
    border: 2px solid #017439;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #017439;
}


/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.page-login__faq-list {
    max-width: 800px;
    margin: 0 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: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

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

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

.page-login__cta-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width for responsive handling */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-login__btn-primary,
.page-login__btn-register { /* Specific styling for CTA buttons based on custom colors */
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary {
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-login__btn-register { /* Register button in CTA section */
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    border: 2px solid #C30808;
}

.page-login__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2em;
    }

    .page-login__intro-text {
        font-size: 1em;
    }

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

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

    .page-login__security-content {
        flex-direction: column;
        text-align: center;
    }

    .page-login__security-text {
        margin-top: 30px;
    }

    .page-login__security-list {
        text-align: left;
    }

    .page-login__cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-login__hero-section {
        min-height: 500px;
        padding-top: 0; /* Already handled by shared.css for body */
        padding-bottom: 40px;
    }
    .page-login__hero-background {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-login__login-card {
        padding: 25px;
        margin: 0 15px; /* Add side padding for smaller screens */
    }
    .page-login__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-login__intro-text {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    /* 产品展示图区域 (Benefits Grid) */
    .page-login__benefits-grid {
        grid-template-columns: 1fr; /* Single column layout */
        padding: 0 15px; /* Add side padding */
    }
    .page-login__benefit-item {
        padding: 20px;
    }
    .page-login__benefit-icon {
        max-width: 150px; /* Adjust max-width for smaller screens, still > 200px if scaled */
        width: 100% !important;
        height: auto !important;
    }
    .page-login__benefits-section {
        padding: 40px 0;
    }

    /* 通用图片与容器 */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__security-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 按钮与按钮容器 */
    .page-login__btn-submit,
    .page-login__register-link,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-register {
        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: 10px; /* Add spacing between stacked buttons */
    }
    .page-login__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__forgot-password-link {
        margin-top: 5px;
    }


    /* 其他内容模块 */
    .page-login__section-title {
        font-size: 1.5em;
        margin-top: 40px;
        margin-bottom: 25px;
    }
    .page-login__security-content {
        gap: 20px;
    }
    .page-login__security-text {
        margin-top: 20px;
    }
    .page-login__security-list li {
        padding-left: 25px;
        background-size: 16px;
    }
    .page-login__faq-section {
        padding: 40px 0;
    }
    .page-login__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px;
    }
    .page-login__cta-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
}