/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background */
}

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

.page-login__main-title {
    font-size: 2.8em;
    color: #017439; /* Brand color for main title */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__intro-text {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #333333;
}

.page-login__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand color for section titles */
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    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 {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden; /* For image positioning */
}

.page-login__hero-section .page-login__container {
    position: relative;
    z-index: 1;
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
}

/* CTA Buttons */
.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.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;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

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

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

.page-login__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand color for secondary button text */
    border: 2px solid #017439;
}

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

/* Guide Section */
.page-login__guide-section {
    padding: 60px 0;
}

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

.page-login__step-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.page-login__step-item p {
    color: #555555;
}

.page-login__guide-image {
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 0;
}

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

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

.page-login__benefit-title {
    font-size: 1.4em;
    color: #FFFF00; /* Yellow for titles on dark background for contrast */
    margin-bottom: 15px;
}

.page-login__benefit-item p {
    color: #f0f0f0; /* Light text on dark background */
}

.page-login__benefits-image {
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* App Section */
.page-login__app-section {
    padding: 60px 0;
}

.page-login__app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-login__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.page-login__feature-item p {
    color: #555555;
}

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

.page-login__app-image {
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

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

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for FAQ questions on dark background */
    background-color: #017439; /* Brand color */
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details/summary */
}

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

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

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

.page-login__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #f0f0f0; /* Light text on dark background */
    background-color: #005a2e; /* Slightly darker brand color for answer */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom CTA Section */
.page-login__cta-bottom-section {
    padding: 60px 0;
}

/* Color Contrast classes */
.page-login__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #ffffff; /* Light text on dark background */
}

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text on light background */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__intro-text {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
    }

    .page-login__hero-section,
    .page-login__guide-section,
    .page-login__benefits-section,
    .page-login__app-section,
    .page-login__faq-section,
    .page-login__cta-bottom-section {
        padding: 40px 0;
    }
    
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

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

    .page-login__steps-grid,
    .page-login__benefits-grid,
    .page-login__app-features {
        grid-template-columns: 1fr;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        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;
        padding-right: 15px;
    }
    
    /* Video (if any) responsiveness */
    .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;
      padding-right: 15px;
      overflow: hidden !important;
    }
}

/* Ensure images meet minimum size requirements for content images */
.page-login__hero-image,
.page-login__guide-image,
.page-login__benefits-image,
.page-login__app-image {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters for images */
.page-login img {
    filter: none;
}