/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css var(--dark-bg-1) */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #004d26); /* Darker green gradient */
    color: #ffffff;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for main title as per custom color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-login__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.page-login__login-card {
    background: #ffffff; /* White background for the form card */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: left;
    max-width: 450px;
    width: 100%;
    color: #333333; /* Dark text for light background */
    box-sizing: border-box;
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #017439; /* Brand color for form title */
    text-align: center;
}

.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: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    background-color: #f8f8f8;
    color: #333333;
}

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

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

.page-login__forgot-password:hover {
    color: #004d26;
}

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

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

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

.page-login__btn-login {
    width: 100%;
    padding: 15px 20px;
    background-color: #C30808; /* Custom login button color */
    color: #FFFF00; /* Custom login font color */
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

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

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: #333333;
}

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

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

.page-login__hero-image-container {
    max-width: 600px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Dark brand color for section background */
    color: #ffffff; /* White text for dark background */
}

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-login__section-description {
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-login__benefit-icon {
    width: 100%; /* Ensure images are responsive */
    max-width: 200px; /* Limit icon size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

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

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

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

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-register {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsive buttons */
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom button color */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
}

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

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

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

/* Why Choose Us Section */
.page-login__why-choose-us {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-login__why-choose-us .page-login__section-title {
    color: #017439;
}

.page-login__why-choose-us .page-login__section-description {
    color: #555555;
}

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

.page-login__feature-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-login__feature-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439;
}

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

/* Video Section */
.page-login__video-section {
    padding: 80px 0;
    text-align: center;
    background-color: #004d26; /* Darker green */
    color: #ffffff;
}

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

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

.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-login__video-cta {
    margin-top: 40px;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light grey background */
    color: #333333;
    text-align: center;
}

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

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

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

.page-login__faq-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    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;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #ffffff;
    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: #555555;
    font-size: 1em;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important;
    padding: 20px !important;
}

.page-login__faq-answer p {
    margin-bottom: 0;
    color: #555555;
}

/* Register CTA Section */
.page-login__register-cta {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Dark brand color */
    color: #ffffff;
}

.page-login__register-cta .page-login__section-title {
    color: #ffffff;
}

.page-login__register-cta .page-login__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-login__btn-register {
    background-color: #C30808; /* Custom register button color */
    color: #FFFF00; /* Custom register font color */
    border: 2px solid #C30808;
}

.page-login__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__login-form-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-login__hero-image-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__why-choose-us,
    .page-login__video-section,
    .page-login__faq-section,
    .page-login__register-cta {
        padding: 40px 0;
    }

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

    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__login-card {
        padding: 30px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__form-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-login__btn-login,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-register,
    .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 {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

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

    .page-login__benefits-grid,
    .page-login__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__video-wrapper {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__benefit-icon {
        max-width: 150px;
    }

    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .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 !important;
    }
}

/* Image color filter restriction */
.page-login img,
.page-login__benefit-icon,
.page-login__hero-image {
    filter: none !important;
}