/* style/login.css */

/* --- General Styles for page-login scope --- */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Ensures consistency with body background */
}

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

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

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

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

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

/* --- Hero Section --- */
.page-login__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #f8f8f8; /* Light background for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.page-login__hero-section .page-login__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-login__hero-content {
    flex: 1;
    text-align: left;
}

.page-login__main-title {
    font-size: 3.2em;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-login__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* --- Login Card --- */
.page-login__login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin-top: 30px;
}

.page-login__card-title {
    font-size: 1.8em;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.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: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: #017439;
    outline: none;
}

.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;
    accent-color: #017439; /* Checkbox color */
}

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

.page-login__forgot-password-link {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.page-login__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

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

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

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

/* --- Why Login Section --- */
.page-login__why-login-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background for this section */
    color: #ffffff; /* Light text for dark background */
}

.page-login__why-login-section .page-login__section-title {
    color: #ffffff; /* Title color for dark background */
}

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

.page-login__why-login-section .page-login__text-link {
    color: #FFFF00; /* Yellow for links on dark background */
}

.page-login__why-login-section .page-login__text-link:hover {
    text-decoration: underline;
}

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for benefit titles */
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* --- Security Section --- */
.page-login__security-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

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

.page-login__feature-item {
    text-align: center;
}

.page-login__feature-icon {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-login__feature-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* --- FAQ Section --- */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff;
}

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

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

.page-login__faq-section .page-login__text-link {
    color: #FFFF00; /* Yellow for links on dark background */
}

.page-login__faq-section .page-login__text-link:hover {
    text-decoration: underline;
}

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-title {
    margin: 0;
    color: #ffffff;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    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: #f0f0f0;
}

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

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

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

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-login__hero-section .page-login__container {
        flex-direction: column;
        text-align: center;
    }

    .page-login__hero-content {
        text-align: center;
    }

    .page-login__main-title {
        font-size: 2.5em;
    }

    .page-login__hero-description {
        font-size: 1.1em;
    }

    .page-login__login-card {
        margin: 30px auto 0 auto;
    }

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

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }
}