/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

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

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

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

/* Hero Section (Login Form) */
.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); /* Ensure space for fixed header */
    background-color: #f9f9f9; /* Light background for this section */
    color: #333333;
}

.page-login__main-title {
    font-size: 48px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 900px;
}

.page-login__description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 900px;
}

.page-login__form-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    width: 100%;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.page-login__form-image {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__form {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    text-align: left;
}

.page-login__form-title {
    font-size: 32px;
    color: #017439;
    margin-bottom: 30px;
    text-align: center;
}

.page-login__input-group {
    margin-bottom: 25px;
}

.page-login__label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #555555;
}

.page-login__input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 15px;
}

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

.page-login__checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #017439; /* Checkbox color */
}

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

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

.page-login__forgot-password:hover {
    color: #00562e;
    text-decoration: underline;
}

.page-login__submit-button {
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* For button-like links */
    display: block; /* For button-like links */
    text-align: center; /* For button-like links */
}

.page-login__btn-login {
    background-color: #C30808; /* Login button background */
    color: #FFFFFF; /* Adjusted for contrast, originally #FFFF00 */
}

.page-login__btn-login:hover {
    background-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-login__register-link {
    color: #017439;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #00562e;
    text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 20px;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
}

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

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

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

.page-login__benefit-item {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-login__benefit-text {
    font-size: 16px;
    line-height: 1.7;
}

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

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

.page-login__feature-item {
    background-color: #f9f9f9;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

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

.page-login__feature-text {
    font-size: 16px;
    line-height: 1.7;
}

.page-login__cta-area {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #e6f7ee; /* Light green background */
    border-radius: 10px;
}

.page-login__cta-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: #017439;
    font-weight: 600;
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__btn-primary:hover {
    background-color: #00562e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Troubleshooting / FAQ Section */
.page-login__troubleshooting-section {
    padding: 80px 20px;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
}

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

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

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

.page-login__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #333333; /* Ensure dark text on light background */
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333; /* Ensure dark text on light background */
}

.page-login__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-login__faq-question:active {
    background: #eeeeee;
}

.page-login__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #017439; /* Brand color for FAQ questions */
}

.page-login__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-login__faq-item.active .page-login__faq-toggle {
    color: #333;
    transform: rotate(45deg); /* Change '+' to 'x' visually */
}

/* Register CTA Section */
.page-login__register-cta-section {
    padding: 80px 20px;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-login__register-cta-section .page-login__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-login__register-content {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    text-align: left;
}

.page-login__register-content .page-login__section-title {
    text-align: left;
}

.page-login__register-content .page-login__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-login__register-image {
    flex: 1;
    min-width: 300px;
    max-width: 40%;
    border-radius: 8px;
    object-fit: cover;
}

/* Download App Section */
.page-login__download-app-section {
    padding: 80px 20px;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
    text-align: center;
}

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

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

.page-login__download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-login__app-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-top: 30px;
}

/* Contact Support Section */
.page-login__contact-support-section {
    padding: 80px 20px;
    background-color: #f9f9f9; /* Light background */
    color: #333333;
    text-align: center;
}

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

    .page-login__form-wrapper {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }

    .page-login__form-image,
    .page-login__form {
        max-width: 100%;
    }

    .page-login__register-cta-section .page-login__container {
        flex-direction: column-reverse; /* Image above text for register CTA */
    }

    .page-login__register-content,
    .page-login__register-image {
        max-width: 100%;
        text-align: center;
    }

    .page-login__register-content .page-login__section-title,
    .page-login__register-content .page-login__section-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-login__description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-login__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

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

    .page-login__form-wrapper {
        padding: 25px;
    }

    .page-login__form-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

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

    .page-login__input {
        padding: 12px 15px;
        font-size: 15px;
    }

    .page-login__options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .page-login__submit-button {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__register-text {
        font-size: 15px;
        margin-top: 20px;
    }

    /* Images */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-login__container,
    .page-login__form-wrapper,
    .page-login__benefits-grid,
    .page-login__security-features,
    .page-login__faq-list,
    .page-login__register-cta-section .page-login__container,
    .page-login__download-app-section .page-login__container,
    .page-login__download-buttons,
    .page-login__contact-support-section .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__benefit-item,
    .page-login__feature-item {
        padding: 25px;
    }

    .page-login__benefit-title,
    .page-login__feature-title {
        font-size: 20px;
    }

    .page-login__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-login__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-login__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-login__faq-answer {
        padding: 0 15px;
    }
    
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px !important;
    }

    .page-login__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__download-buttons {
        flex-direction: column;
        gap: 15px;
    }
}