/* 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; /* Body background is light */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Or responsive height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

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

.page-login__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.page-login__main-heading {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF; /* White text on dark background */
}

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

/* Container for consistent content width */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-login__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
}

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

/* Dark Section styling */
.page-login__dark-section .page-login__section-title,
.page-login__dark-section .page-login__section-description {
    color: #FFFFFF;
}

/* Login Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background for form */
}

.page-login__login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.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: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

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

.page-login__checkbox-group {
    display: flex;
    align-items: center;
}

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

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

.page-login__forgot-password-link {
    color: #26A9E0; /* Brand color for link */
    text-decoration: none;
    font-weight: bold;
}

.page-login__forgot-password-link:hover {
    text-decoration: underline;
}

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

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

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

.page-login__register-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-login__register-link:hover {
    text-decoration: underline;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
}

.page-login__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-description {
    color: #ffffff;
}

.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.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block; /* Important for max-width: 100% to work well */
}

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

.page-login__card-text {
    color: #f0f0f0;
}

/* Security Section */
.page-login__security-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
}

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

.page-login__security-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__security-icon {
    width: 100%; /* Ensure image fills item width */
    height: 180px; /* Fixed height for consistency */
    object-fit: contain; /* Use contain for icons/illustrations */
    margin-bottom: 20px;
    display: block;
}

.page-login__item-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-login__item-text {
    color: #555555;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
}

.page-login__troubleshooting-section .page-login__section-title,
.page-login__troubleshooting-section .page-login__section-description {
    color: #ffffff;
}

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

.page-login__troubleshooting-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text on light background */
    text-align: center;
}

.page-login__troubleshooting-card .page-login__card-title {
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-login__troubleshooting-card .page-login__card-text {
    color: #555555;
    margin-bottom: 20px;
}

.page-login__card-link {
    color: #EA7C07; /* Login button color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-login__card-link:hover {
    text-decoration: underline;
}

.page-login__support-prompt {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-login__support-button {
    margin-top: 30px;
    background-color: #EA7C07; /* Login button color */
    border-color: #EA7C07;
}

.page-login__support-button:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background */
}

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

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

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

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

.page-login__faq-qtext {
    color: #26A9E0; /* Brand color for question text */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
}

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

.page-login__faq-answer {
    padding: 20px;
    color: #555555;
    line-height: 1.8;
}

/* Download CTA Section */
.page-login__download-cta {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand color background */
    text-align: center;
    color: #ffffff;
}

.page-login__download-cta .page-login__section-title,
.page-login__download-cta .page-login__section-description {
    color: #ffffff;
}

/* --- Responsive Design --- */

/* Mobile responsiveness for images, videos, buttons and general containers */
@media (max-width: 768px) {
    .page-login__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-login__main-heading {
        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__container {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-login__hero-content,
    .page-login__form-section .page-login__container,
    .page-login__benefits-section .page-login__container,
    .page-login__security-section .page-login__container,
    .page-login__troubleshooting-section .page-login__container,
    .page-login__faq-section .page-login__container,
    .page-login__download-cta .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    /* Ensure specific images are not too small if they were initially large */
    .page-login__benefit-icon,
    .page-login__security-icon {
        height: auto !important; /* Let height adjust to maintain aspect ratio */
        min-height: 200px !important; /* Ensure minimum size */
        object-fit: cover;
    }

    /* Buttons responsiveness */
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-submit,
    .page-login__support-button {
        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__benefits-grid,
    .page-login__security-features,
    .page-login__troubleshooting-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-login__forgot-password-link {
        margin-top: 5px;
    }
}

/* Ensure no filter is used on images */
.page-login img {
    filter: none;
}

/* Additional contrast safety for general text elements if needed */
.page-login p, .page-login li, .page-login label {
    color: #333333; /* Ensure dark text on light backgrounds */
}

.page-login__dark-section p, .page-login__dark-section li, .page-login__dark-section label {
    color: #ffffff; /* Ensure light text on dark backgrounds */
}

/* Specific button styles for contrast */
.page-login__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-login__btn-submit {
    background-color: #EA7C07;
    color: #ffffff;
}

/* Image CSS size lower bound for content area */
.page-login img {
    min-width: 200px;
    min-height: 200px;
}

@media (max-width: 768px) {
    .page-login img {
        min-width: unset !important;
        min-height: unset !important;
    }
    .page-login__benefit-icon,
    .page-login__security-icon {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}