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

/* General page styling */
.page-login {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #0d0d0d; /* Slightly lighter than body for depth */
}

.page-login__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Subtle background image */
}

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

.page-login__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 40px;
    background: rgba(1, 116, 57, 0.7); /* Brand color with transparency */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__main-heading {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for prominence */
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #ffffff;
}

/* Login Form */
.page-login__form-container {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    margin: 0 auto;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: #333333;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #cccccc;
}

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

.page-login__forgot-password-link {
    color: #FFFF00; /* Yellow for links */
    text-decoration: none;
}

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

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

.page-login__checkbox {
    /* Custom checkbox styling if needed */
}

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

.page-login__login-button {
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    padding: 14px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none; /* For <a> tag */
    display: block; /* For <a> tag */
    text-align: center; /* For <a> tag */
}

.page-login__login-button:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

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

.page-login__register-link {
    color: #FFFF00; /* Yellow for links */
    text-decoration: none;
    font-weight: bold;
}

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

/* Section General */
.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Light background sections */
.page-login__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-login__light-bg .page-login__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-login__light-bg .page-login__section-description,
.page-login__light-bg .page-login__benefit-text,
.page-login__light-bg .page-login__trouble-text,
.page-login__light-bg .page-login__faq-answer p {
    color: #333333;
}

/* Dark background sections */
.page-login__dark-bg {
    background-color: #017439; /* Brand color background */
    color: #ffffff; /* White text for dark background */
    padding: 60px 0;
}

.page-login__dark-bg .page-login__section-title {
    color: #FFFF00; /* Yellow for titles on dark background */
}

/* Benefits Section */
.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: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-login__benefit-image {
    width: 100%;
    max-width: 300px; /* Constrain image width in card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.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;
    flex-grow: 1; /* Allow text to take available space */
}

/* Security Section */
.page-login__security-section {
    position: relative;
    padding-bottom: 100px;
}

.page-login__security-image {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 400px; /* Adjust size as needed */
    height: auto;
    opacity: 0.2;
    z-index: 1;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-login__security-section .page-login__container {
    position: relative;
    z-index: 2;
}

.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: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.page-login__feature-title {
    font-size: 1.4em;
    color: #FFFF00; /* Yellow for feature titles */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__feature-text {
    font-size: 1em;
    color: #e0e0e0;
}

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

.page-login__trouble-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

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

.page-login__trouble-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
}

.page-login__trouble-link {
    display: inline-block;
    background-color: #017439;
    color: #ffffff;
    padding: 10px 20px;
    border: 2px solid #017439;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box; /* For responsiveness */
}

.page-login__trouble-link:hover {
    background-color: #005a2d;
}

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

.page-login__cta-container {
    max-width: 800px;
}

.page-login__register-cta-button,
.page-login__home-button {
    display: inline-block;
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 30px;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
}

.page-login__register-cta-button:hover,
.page-login__home-button:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__faq-item {
    background: #f9f9f9;
    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: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    margin: 0;
    color: inherit; /* Inherit color from parent (.page-login__faq-question) */
}

.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); /* Plus sign rotates to X or minus */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff; /* White background for answer */
    color: #333333; /* Dark text for answer */
}

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

.page-login__faq-answer p {
    margin: 0;
    color: #333333; /* Ensure dark text */
}


/* About Section */
.page-login__about-section {
    padding-bottom: 60px; /* Adjust if needed */
}

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

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 600px;
        padding: 40px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }

    .page-login__hero-content {
        padding: 25px;
        max-width: 90%;
    }

    .page-login__main-heading {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-login__form-container {
        padding: 20px;
        max-width: 100%;
    }

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

    .page-login__section-title {
        font-size: 1.8em;
    }

    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-login__benefits-grid,
    .page-login__security-features,
    .page-login__troubleshooting-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__benefit-card,
    .page-login__feature-item,
    .page-login__trouble-card {
        padding: 20px;
    }

    .page-login__benefit-title,
    .page-login__feature-title,
    .page-login__trouble-title {
        font-size: 1.3em;
    }

    .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: 15px 20px;
    }

    .page-login__cta-section {
        padding: 50px 20px;
    }

    .page-login__register-cta-button,
    .page-login__home-button {
        font-size: 1.1em;
        padding: 12px 25px;
        width: 100%; /* Full width for buttons on mobile */
    }

    /* Mobile image and video responsiveness */
    .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__form-container,
    .page-login__cta-container,
    .page-login__benefits-grid,
    .page-login__security-features,
    .page-login__troubleshooting-grid,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to content containers */
        padding-right: 15px; /* Add padding to content containers */
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__troubleshooting-section,
    .page-login__cta-section,
    .page-login__faq-section,
    .page-login__about-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Buttons responsive */
    .page-login__login-button,
    .page-login__trouble-link,
    .page-login__register-cta-button,
    .page-login__home-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .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;
    }
}