/* style/login.css */

/* --- Base Styles --- */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
}

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

.page-login__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #E53935; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

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

/* --- Buttons --- */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__submit-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary,
.page-login__submit-button {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #ffffff;
}

.page-login__btn-primary:hover,
.page-login__submit-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    background: #ffffff;
    color: #E53935; /* Primary color for text */
    border: 2px solid #E53935; /* Primary color for border */
}

.page-login__btn-secondary--white {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-login__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #E53935;
    transform: translateY(-2px);
}
.page-login__btn-secondary--white:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
    padding-bottom: 60px;
    background-color: #F5F7FA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of the image wrapper */
    overflow: hidden;
    margin-bottom: 40px;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Ensure image itself also respects max height */
}

.page-login__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 800;
    color: #E53935;
    margin-bottom: 15px;
}

.page-login__description {
    font-size: 1.2em;
    color: #333333;
    margin-bottom: 30px;
}

.page-login__login-form-wrapper {
    background: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    border: 1px solid #E0E0E0; /* Border */
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__form-group {
    text-align: left;
}

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input:focus {
    border-color: #E53935;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

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

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

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

.page-login__forgot-password-link {
    color: #E53935;
    text-decoration: none;
}

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

.page-login__submit-button {
    width: 100%;
    font-size: 1.1em;
    padding: 15px 25px;
}

.page-login__register-text {
    margin-top: 20px;
    font-size: 1em;
    color: #333333;
}

.page-login__register-link {
    color: #E53935;
    text-decoration: none;
    font-weight: bold;
}

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

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

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

.page-login__benefit-card {
    background: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #E0E0E0; /* Border */
}

.page-login__benefit-icon {
    width: 100%;
    height: auto;
    max-width: 250px; /* Limit icon size */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

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

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

/* --- Security Section --- */
.page-login__security-section {
    padding: 60px 0;
    background-color: #E53935; /* Primary color for dark background */
    color: #ffffff;
}

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

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

.page-login__security-subtitle {
    font-size: 1.6em;
    font-weight: bold;
    color: #ffffff;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-login__security-paragraph {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-login__security-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- Troubleshooting Section --- */
.page-login__troubleshooting-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

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

.page-login__trouble-card {
    background: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #E0E0E0; /* Border */
}

.page-login__trouble-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #E53935;
    margin-bottom: 10px;
}

.page-login__trouble-text {
    font-size: 1em;
    color: #333333;
}

.page-login__support-cta {
    text-align: center;
    margin-top: 40px;
}

.page-login__support-text {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 20px;
}

/* --- CTA Section --- */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #E53935; /* Primary color for dark background */
    text-align: center;
}

.page-login__cta-content {
    max-width: 900px;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

.page-login__faq-item {
    background: #ffffff; /* Card BG */
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px 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.2em;
    font-weight: bold;
    color: #E53935;
    cursor: pointer;
    background-color: #fcfcfc;
    position: relative;
    list-style: none; /* For details/summary */
}

.page-login__faq-item[open] > .page-login__faq-question {
    border-bottom: 1px solid #E0E0E0;
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #E53935;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate */
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #333333;
}

/* --- Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-login__benefits-grid,
    .page-login__troubleshooting-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-login__security-content {
        flex-direction: column;
        text-align: center;
    }
    .page-login__security-image-wrapper {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-login__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }
    .page-login__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-login__hero-image {
        max-height: 300px;
    }
    .page-login__main-title {
        font-size: 1.8em !important;
        line-height: 1.3;
    }
    .page-login__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-login__login-form-wrapper {
        padding: 20px;
        max-width: 100%;
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }

    /* 通用图片与容器 */
    .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__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;
        padding-right: 15px;
        font-size: 1em;
    }
    .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; /* Stack buttons vertically */
        gap: 15px;
    }

    /* 其他内容模块 */
    .page-login__section-title {
        font-size: 2em !important;
        margin-bottom: 15px;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__benefits-grid,
    .page-login__troubleshooting-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-login__benefit-card,
    .page-login__trouble-card {
        padding: 25px;
    }
    .page-login__benefit-title,
    .page-login__trouble-title {
        font-size: 1.3em;
    }
    .page-login__security-content {
        gap: 20px;
    }
    .page-login__security-subtitle {
        font-size: 1.4em;
    }
    .page-login__security-paragraph {
        font-size: 0.95em;
    }
    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
}