/* style/login.css */
.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: 0 20px;
    box-sizing: border-box;
}

.page-login__section-title {
    font-size: 2.5em;
    color: #017439;
    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;
}

/* Hero Section */
.page-login__hero-section {
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(to right, #e0ffe0, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    padding-bottom: 60px;
}

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

.page-login__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-login__hero-title {
    font-size: 3.5em;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

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

.page-login__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

.page-login__btn-primary,
.page-login__btn-submit {
    background-color: #C30808; /* Custom color for Login/Register */
    color: #FFFF00; /* Custom font color for Login/Register */
    border: 2px solid #C30808;
}

.page-login__btn-primary:hover,
.page-login__btn-submit:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

.page-login__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    text-align: center;
}

.page-login__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

.page-login__form-section .page-login__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap-reverse; /* Image on right, form on left */
}

.page-login__form-wrapper {
    flex: 1;
    min-width: 300px;
    background-color: #1a8a4f; /* Slightly lighter green */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-login__form-section .page-login__section-title,
.page-login__form-section .page-login__section-description {
    color: #ffffff;
}

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

.page-login__form-group {
    display: flex;
    flex-direction: column;
}

.page-login__form-label {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.1em;
    color: #FFFF00; /* Custom font color for labels */
}

.page-login__form-input {
    padding: 12px 15px;
    border: 1px solid #005f2e;
    border-radius: 8px;
    font-size: 1em;
    background-color: #ffffff;
    color: #333333;
}

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

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-login__forgot-password-link {
    color: #FFFF00; /* Custom font color */
    text-decoration: underline;
    font-size: 0.95em;
}

.page-login__forgot-password-link:hover {
    color: #ffffff;
}

.page-login__no-account-text {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #ffffff;
}

.page-login__register-link {
    color: #FFFF00; /* Custom font color */
    text-decoration: underline;
    font-weight: bold;
}

.page-login__register-link:hover {
    color: #ffffff;
}

.page-login__form-image-wrapper {
    flex: 1;
    min-width: 400px;
    text-align: center;
}

.page-login__form-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

.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;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

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

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: #005f2e;
    color: #ffffff;
}

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

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

.page-login__troubleshooting-item {
    background-color: #1a8a4f;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__troubleshooting-title {
    font-size: 1.4em;
    color: #FFFF00; /* Custom font color */
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

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

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

.page-login__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.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);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Ensures content is fully visible */
    padding: 20px 25px;
}

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

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

.page-login__cta-register-section .page-login__section-title,
.page-login__cta-register-section .page-login__section-description {
    color: #ffffff;
}

.page-login__cta-register-section .page-login__cta-buttons {
    justify-content: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-section .page-login__container,
    .page-login__form-section .page-login__container {
        flex-direction: column;
        text-align: center;
    }
    .page-login__hero-content,
    .page-login__form-wrapper,
    .page-login__hero-image-wrapper,
    .page-login__form-image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-login__cta-buttons {
        justify-content: center;
    }
    .page-login__hero-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-login__container {
        padding: 0 15px;
    }

    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-login__hero-title {
        font-size: 2.2em;
    }

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

    .page-login__section-description {
        font-size: 1em;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-submit,
    .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;
    }

    .page-login__cta-buttons,
    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0px;
        padding-right: 0px;
        overflow: hidden !important;
    }

    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-login__hero-image-wrapper,
    .page-login__form-image-wrapper,
    .page-login__benefit-item,
    .page-login__troubleshooting-item,
    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

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

    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-login__faq-answer {
        padding: 0 20px;
    }

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__hero-description {
        font-size: 0.9em;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-submit {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-login__form-wrapper {
        padding: 20px;
    }
}