/* style/login.css */

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

.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: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-login__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #017439; /* Brand color background for hero */
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

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

.page-login__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
}

.page-login__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__btn {
    display: inline-block;
    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, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile responsiveness */
    word-wrap: break-word; /* For mobile responsiveness */
}

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

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

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

.page-login__btn--secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

.page-login__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
}

/* Login Form Section */
.page-login__form-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background */
}

.page-login__login-form {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for card-like effect */
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

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

.page-login__forgot-password {
    color: #FFFF00; /* Custom font color for links */
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

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

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

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

.page-login__checkbox-label {
    font-size: 0.9em;
    color: #ffffff;
}

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

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

.page-login__register-text {
    text-align: center;
    margin-top: 20px;
    color: #ffffff;
}

.page-login__register-link {
    color: #FFFF00; /* Custom font color for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Video Section */
.page-login__video-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly darker background */
    text-align: center;
}

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

.page-login__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background */
    text-align: center;
}

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

.page-login__benefit-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    min-height: 300px; /* Ensure cards are large enough */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #ffffff;
}

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

.page-login__benefit-icon {
    width: 200px; /* Min size 200x200 as per requirements */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: invert(0); /* Ensure no filter is applied to change color */
    border-radius: 5px; /* Added for visual consistency */
}

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

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

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

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

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

.page-login__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1em; /* Ensure consistent font size */
}

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

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

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

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

.page-login__faq-btn {
    display: inline-block;
    background-color: #017439;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.page-login__faq-btn:hover {
    background-color: #005a2d;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__hero-description {
        font-size: 1.2em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

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

    .page-login__hero-section {
        padding: 40px 15px;
    }

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

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

    .page-login__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__btn {
        width: 100% !important;
        max-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__form-section,
    .page-login__video-section,
    .page-login__benefits-section,
    .page-login__faq-section {
        padding: 40px 0;
    }

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

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

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

    .page-login__login-form {
        padding: 30px 20px;
    }

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

    .page-login__forgot-password,
    .page-login__checkbox-label {
        font-size: 0.85em;
    }

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

    .page-login__benefit-card {
        padding: 25px;
        min-height: auto;
    }

    .page-login__benefit-icon {
        width: 200px !important;
        height: 200px !important;
    }

    .page-login__benefit-title {
        font-size: 1.3em;
    }

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

    .page-login__faq-question h3 {
        font-size: 1em;
    }

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

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    
    /* Image and Video responsiveness for mobile */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__hero-image-wrapper,
    .page-login__video-wrapper,
    .page-login__benefits-grid,
    .page-login__benefit-card,
    .page-login__faq-list,
    .page-login__login-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-login__container for most sections */
    }

    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section has correct padding-top on mobile */
    }
}