/* style/login.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --accent-register: #C30808;
    --accent-login: #C30808;
    --text-color-light: #FFFF00;
    --text-color-dark: #333333;
    --background-color: #FFFFFF;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --card-bg-light: #FFFFFF;
}

.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background */
    background-color: var(--background-color);
}

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

/* --- Hero Section --- */
.page-login__hero-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

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

.page-login__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-light); /* Yellow for H1 as per custom color */
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.page-login__login-card {
    background-color: var(--card-bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin-top: 30px;
    color: var(--text-color-dark);
    text-align: center;
}

.page-login__card-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--primary-color);
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color-dark);
}

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

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

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

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__checkbox-label {
    font-size: 0.9em;
    color: var(--text-color-dark);
}

.page-login__forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
}

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

.page-login__btn-primary {
    background-color: var(--accent-login); /* Login button color */
    color: var(--text-color-light); /* Login button font color */
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.page-login__btn-primary:hover {
    background-color: #a30707;
}

.page-login__register-text {
    margin-top: 20px;
    font-size: 0.95em;
    color: var(--text-color-dark);
}

.page-login__register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styles --- */
.page-login__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    color: var(--text-color-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-login__dark-section .page-login__section-title,
.page-login__dark-section .page-login__section-description {
    color: var(--secondary-color);
}

.page-login__dark-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 80px 0;
}

.page-login__light-bg {
    background-color: var(--background-color);
    color: var(--text-color-dark);
    padding: 80px 0;
}

/* --- 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-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background-color: var(--card-bg-light);
    color: var(--text-color-dark);
}

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

.page-login__benefit-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-login__benefit-text {
    font-size: 1em;
    color: var(--text-color-dark);
}

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

.page-login__troubleshoot-item {
    padding: 30px;
    border-radius: 10px;
    background-color: var(--card-bg-light);
    color: var(--text-color-dark);
    text-align: left;
}

.page-login__troubleshoot-item .page-login__troubleshoot-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-login__troubleshoot-item p {
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.page-login__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.page-login__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* --- Register CTA Section --- */
.page-login__register-cta-section .page-login__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: center;
    padding: 80px 20px;
}

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

.page-login__register-cta-content .page-login__section-title {
    text-align: left;
    font-size: 2em;
}

.page-login__register-cta-content .page-login__section-description {
    text-align: left;
    margin: 0 0 30px 0;
    max-width: none;
}

.page-login__register-button {
    background-color: var(--accent-register); /* Register button color */
    color: var(--text-color-light); /* Register button font color */
    width: auto;
    padding: 15px 30px;
}

.page-login__register-button:hover {
    background-color: #a30707;
}

.page-login__register-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__register-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-color-dark);
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 20px;
}

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

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

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
    color: var(--secondary-color);
}

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

.page-login__cta-buttons .page-login__btn-primary,
.page-login__cta-buttons .page-login__btn-secondary {
    width: auto;
    min-width: 200px;
    padding: 15px 30px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-section .page-login__container,
    .page-login__register-cta-section .page-login__container {
        flex-direction: column;
    }
    .page-login__hero-content,
    .page-login__register-cta-content {
        text-align: center;
    }
    .page-login__hero-image-wrapper,
    .page-login__register-image-wrapper {
        order: -1; /* Image above content on smaller screens */
    }
    .page-login__hero-image,
    .page-login__register-image {
        max-width: 80%;
    }
}

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

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

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

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

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

    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__troubleshoot-section,
    .page-login__register-cta-section .page-login__container,
    .page-login__faq-section,
    .page-login__cta-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-login__login-card {
        padding: 25px;
        margin-top: 20px;
        max-width: 100%;
    }

    .page-login__hero-image,
    .page-login__register-image,
    .page-login__benefit-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__container,
    .page-login__login-card,
    .page-login__benefits-grid,
    .page-login__troubleshoot-grid,
    .page-login__register-cta-content,
    .page-login__register-image-wrapper,
    .page-login__faq-list,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

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

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__login-button,
    .page-login__register-button,
    .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;
        margin-bottom: 10px; /* Add margin for stacked buttons */
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

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

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

    .page-login__hero-content,
    .page-login__register-cta-content {
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__card-title {
        font-size: 1.5em;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}