/* 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 background */
    background-color: #ffffff; /* Default body background */
}

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

/* Section styling */
.page-login__hero-section,
.page-login__benefits-section,
.page-login__security-section,
.page-login__troubleshooting-section,
.page-login__faq-section,
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-login__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section */
}

/* Hero Section Specifics */
.page-login__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Minimum height for hero section */
    position: relative;
    overflow: hidden;
}

.page-login__hero-section .page-login__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-login__login-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin-top: 20px;
    text-align: center;
    color: #333333;
    z-index: 1;
}

.page-login__card-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #017439;
}

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

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

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

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

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

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

.page-login__forgot-password:hover {
    color: #005a2d;
    text-decoration: underline;
}

.page-login__register-prompt {
    margin-top: 25px;
    font-size: 0.95em;
    color: #555555;
}

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

.page-login__register-link:hover {
    color: #9e0606;
    text-decoration: underline;
}

.page-login__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    text-align: right;
    z-index: 1;
}

.page-login__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: block; /* Important for responsiveness */
    object-fit: cover;
}


/* General Button Styles */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.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: #a30707;
    border-color: #a30707;
    color: #ffffff;
}

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

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


/* Card Styles (for benefits, troubleshooting) */
.page-login__benefits-grid,
.page-login__troubleshooting-grid,
.page-login__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-login__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Added for contrast */
}

.page-login__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
}

.page-login__card-heading {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-login__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

/* Security Features Icons */
.page-login__feature-item {
    padding: 20px;
    color: #ffffff;
}

.page-login__feature-icon {
    width: 150px; /* Adjust size for icons */
    height: 150px;
    object-fit: contain; /* Ensure icons fit without cropping */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* FAQ Section */
.page-login__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-login__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

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

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

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

.page-login__faq-item[open] .page-login__faq-toggle {
    content: "−"; /* Update content for open state via JS */
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.8;
    color: #555555;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__hero-section .page-login__container {
        flex-direction: column;
        text-align: center;
    }

    .page-login__hero-content {
        text-align: center;
    }

    .page-login__login-card {
        margin-left: auto;
        margin-right: auto;
    }

    .page-login__hero-image-wrapper {
        margin-top: 40px;
        text-align: center;
    }

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

@media (max-width: 768px) {
    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__troubleshooting-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 60px 0;
    }

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

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

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

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

    .page-login__login-card {
        padding: 25px;
    }

    .page-login__card-title {
        font-size: 1.5em;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important; /* Enforce full width */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    /* Image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* All containers that might hold images/videos/buttons */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__login-card,
    .page-login__hero-image-wrapper,
    .page-login__benefits-grid,
    .page-login__troubleshooting-grid,
    .page-login__security-features,
    .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 !important; /* Prevent horizontal scroll */
    }

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

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

    .page-login__faq-answer {
        padding: 15px 20px;
    }
    
    .page-login__feature-icon {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__card-title {
        font-size: 1.3em;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }
}