/* style/login.css */

/* --- Base Styles --- */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color, #FFFFFF); /* Page background */
}

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

.page-login__section-title {
    font-size: 32px;
    color: #017439; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* --- 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: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #e0ffe0, #ffffff); /* Light gradient for hero 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%;
}

.page-login__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Limit image width */
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-login__main-title {
    font-size: 42px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__hero-description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

/* --- Login Form --- */
.page-login__form-wrapper {
    margin-top: 30px;
    width: 100%;
}

.page-login__login-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.page-login__form-title {
    font-size: 28px;
    color: #017439;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

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

.page-login__btn-login {
    background: #C30808; /* Custom login button color */
    color: #FFFF00; /* Custom login button text color */
    box-shadow: 0 4px 15px rgba(195, 8, 8, 0.3);
}

.page-login__btn-login:hover {
    background: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 8, 8, 0.4);
}

.page-login__register-link,
.page-login__forgot-password {
    color: #017439;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.page-login__register-link:hover,
.page-login__forgot-password:hover {
    color: #005f2f;
    text-decoration: underline;
}

/* --- Benefits Section --- */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: var(--secondary-color, #FFFFFF);
}

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

.page-login__benefit-item {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-item img {
    width: 100%;
    max-width: 200px; /* Ensure images are not too small */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-login__benefit-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-login__benefit-text {
    font-size: 16px;
    color: #555555;
}

/* --- Guide Section (Dark Background) --- */
.page-login__guide-section {
    padding: 80px 0;
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-login__guide-section .page-login__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-login__guide-section .page-login__section-description {
    color: #f0f0f0; /* Lighter white for description */
}

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

.page-login__step-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #017439;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-login__step-title {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-login__step-text {
    font-size: 16px;
    color: #f0f0f0;
}

.page-login__guide-cta {
    text-align: center;
    margin-top: 50px;
}

.page-login__guide-cta p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #f0f0f0;
}

/* --- Security Section --- */
.page-login__security-section {
    padding: 80px 0;
    background-color: var(--secondary-color, #FFFFFF);
}

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

.page-login__feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-login__feature-item img {
    width: 100%;
    max-width: 200px; /* Ensure images are not too small */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-login__feature-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-login__feature-text {
    font-size: 16px;
    color: #555555;
}

.page-login__security-cta {
    text-align: center;
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* --- FAQ Section (Dark Background) --- */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

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

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

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

/* FAQ容器样式 */
.page-login__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #ffffff; /* White background for FAQ item */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: #333333; /* Dark text for white background */
    background-color: #f9f9f9;
}