/* style/login.css */

/* --- General Styles for page-login --- */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background: var(--dark-bg-1); /* Inherited from shared.css, assuming it's dark */
    padding-top: var(--header-offset, 120px); /* Ensures 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-title--white {
    color: #ffffff;
}

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

.page-login__section-description--white {
    color: #ffffff;
}

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
}

.page-login__hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFFF00; /* Custom color for main title */
}

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

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

/* --- Buttons --- */
.page-login__btn-primary,
.page-login__btn-secondary {
    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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-login__btn-primary {
    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 {
    background-color: #a30606;
    border-color: #a30606;
}

.page-login__btn-primary--contact {
    background-color: #017439; /* Brand color for contact button */
    color: #ffffff;
    border-color: #017439;
}

.page-login__btn-primary--contact:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

.page-login__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFF00;
    border-color: #FFFF00;
}


/* --- Login Form Section --- */
.page-login__form-section {
    padding: 80px 0;
}

.page-login__light-bg {
    background-color: #ffffff; /* Custom background color for form section */
    color: #333333; /* Dark text for light background */
}

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

.page-login__login-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333333;
    font-size: 1.1em;
}

.page-login__form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: #017439;
    outline: none;
}

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

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

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

.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: #005a2e;
    text-decoration: underline;
}

.page-login__submit-button {
    width: 100%;
    padding: 15px;
    background-color: #C30808; /* Custom color for login/register */
    color: #FFFF00; /* Custom font color for login/register */
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__submit-button:hover {
    background-color: #a30606;
}

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

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

.page-login__register-link:hover {
    color: #005a2e;
    text-decoration: underline;
}

/* --- Features Section --- */
.page-login__features-section {
    padding: 80px 0;
}

.page-login__dark-bg {
    background-color: #017439; /* Brand green background */
    color: #ffffff; /* White text for dark background */
}

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

.page-login__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__feature-card:hover {
    transform: translateY(-5px);
}

.page-login__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    /* Ensure no filter is applied */
    filter: none;
}

.page-login__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFF00; /* Custom highlight color for titles */
}

.page-login__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

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

.page-login__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Dark text for light background */
}

.page-login__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* Remove default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-login__faq-qtext {
    flex-grow: 1;
    color: #333333;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    margin-left: 15px;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #fdfdfd;
    border-top: 1px solid #eee;
}

/* --- Contact CTA Section --- */
.page-login__contact-cta {
    padding: 80px 0;
    text-align: center;
}

.page-login__contact-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-login__hero-section {
        height: 500px;
    }
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__intro-text {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        height: 400px;
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__intro-text {
        font-size: 1em;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__submit-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 !important;
        padding-right: 15px !important;
    }
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .page-login__form-section {
        padding: 60px 0;
    }
    .page-login__login-form {
        padding: 30px;
        margin: 0 15px;
    }
    .page-login__features-section {
        padding: 60px 0;
    }
    .page-login__features-grid {
        grid-template-columns: 1fr;
    }
    .page-login__faq-section {
        padding: 60px 0;
    }
    .page-login__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
    }
    .page-login__contact-cta {
        padding: 60px 0;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Video responsiveness - if any */
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__hero-section {
        height: 350px;
    }
    .page-login__login-form {
        padding: 25px;
    }
    .page-login__form-input {
        padding: 12px;
    }
    .page-login__submit-button {
        padding: 12px;
    }
}