/* style/login.css */

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

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

.page-login__section {
    padding: 60px 0;
}

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

.page-login__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-login__main-title,
.page-login__section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0; /* Brand color for titles */
}

.page-login__dark-bg .page-login__main-title,
.page-login__dark-bg .page-login__section-title {
    color: #ffffff; /* White for dark backgrounds */
}

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

.page-login__text-block p {
    margin-bottom: 1em;
}

/* Hero Section */
.page-login__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 80px 0; /* Adjusted for header offset */
    background: linear-gradient(135deg, #e0f7fa, #ffffff); /* Subtle gradient for hero */
}

.page-login__hero-section .page-login__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

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

.page-login__hero-image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__hero-image {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    height: auto;
    display: block;
}

/* Login Form */
.page-login__login-form-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 0 auto;
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
}

.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 #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

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

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

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

.page-login__checkbox-label {
    font-size: 0.95em;
    color: #555555;
}

.page-login__forgot-password-link {
    font-size: 0.95em;
    color: #26A9E0;
    text-decoration: none;
}

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

.page-login__btn-primary {
    background-color: #EA7C07; /* Login button color */
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.page-login__btn-primary:hover {
    background-color: #d16b06;
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    padding: 12px 25px;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-login__login-button {
    margin-top: 10px;
}

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

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

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

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

.page-login__feature-item,
.page-login__security-item,
.page-login__troubleshooting-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff; /* Text color for dark background */
}

.page-login__light-bg .page-login__feature-item,
.page-login__light-bg .page-login__security-item,
.page-login__light-bg .page-login__troubleshooting-item {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-login__feature-title,
.page-login__security-title,
.page-login__troubleshooting-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
    color: inherit; /* Inherit from parent for contrast */
}

.page-login__feature-image,
.page-login__security-image,
.page-login__troubleshooting-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block; /* Ensure it doesn't cause extra space */
    margin-left: auto;
    margin-right: auto;
}

.page-login__support-link-text {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-login__light-bg .page-login__support-link-text {
    color: #333333;
}

.page-login__support-link-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

.page-login__light-bg .page-login__support-link-text a {
    color: #26A9E0;
}

.page-login__support-link-text a:hover {
    text-decoration: none;
}

/* Register CTA */
.page-login__register-cta {
    text-align: center;
    margin-top: 40px;
}

.page-login__register-cta-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__register-cta-button {
    margin-top: 20px;
}

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

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #ffffff;
}

.page-login__light-bg .page-login__faq-item {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.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-item:hover .page-login__faq-question {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly darker on hover */
}

.page-login__light-bg .page-login__faq-item:hover .page-login__faq-question {
    background-color: #f9f9f9;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X/Minus */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Use !important as required */
    padding: 15px 25px 20px;
}

/* CTA Section */
.page-login__cta-section {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-login__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

    .page-login__hero-content {
        order: 2; /* Put content below image on smaller screens */
    }
    
    .page-login__hero-image-container {
        order: 1;
        margin-bottom: 30px;
    }

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

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

@media (max-width: 768px) {
    .page-login__section {
        padding: 40px 0;
    }

    .page-login__main-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-login__description-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

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

    .page-login__form-input {
        padding: 10px 12px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .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;
        padding-right: 15px;
    }

    .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;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 15px;
    }
    
    .page-login__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

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

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

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 15px;
    }
    
    /* Ensure all images are responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers with images/content */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-section .page-login__container,
    .page-login__login-form-wrapper,
    .page-login__features-grid,
    .page-login__security-grid,
    .page-login__troubleshooting-grid,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Fixed header offset for hero section */
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; 
    }
}