/* 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: var(--background-color, #FFFFFF); /* Inherit from shared.css */
}

/* Hero Section - Background image with overlay and login card */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('[GALLERY:hero_login_bg:1920x1080:login,background,secure,dynamic]') no-repeat center center/cover;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    box-sizing: border-box;
}

.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__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%; /* Ensure container fills width on mobile */
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white card */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    color: #333333; /* Dark text for light card background */
}

.page-login__main-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color */
    margin-bottom: 15px;
    line-height: 1.2;
}

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

.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:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px;
}

.page-login__btn-primary {
    display: inline-block;
    background: #EA7C07; /* Custom color for login button */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    width: auto; /* Default width */
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary:hover {
    background: #d46b00; /* Slightly darker orange */
}

.page-login__link-forgot-password {
    color: #26A9E0; /* Brand primary color */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__link-forgot-password:hover {
    color: #1a7fb0;
    text-decoration: underline;
}

.page-login__register-prompt {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.page-login__register-prompt p {
    margin-bottom: 15px;
    color: #555555;
}

.page-login__btn-secondary {
    display: inline-block;
    background: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    width: auto; /* Default width */
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-secondary:hover {
    background: #1a7fb0;
}

/* Features Section */
.page-login__features-section {
    padding: 80px 0;
    text-align: center;
    background: #f8f8f8; /* Light background for features */
    color: #333333;
}

.page-login__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    margin-bottom: 40px;
}

.page-login__section-title--light {
    color: #ffffff;
}

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

.page-login__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.page-login__feature-icon {
    width: 200px; /* Min size 200px */
    height: 150px; /* Display aspect ratio, generated image is 400x300 */
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 100%; /* Responsive */
    height: auto; /* Responsive */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

/* Call to Action Section */
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
    background: #26A9E0; /* Brand primary color background */
    color: #ffffff;
}

.page-login__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__btn-primary--large {
    padding: 15px 35px;
    font-size: 1.2em;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background: #ffffff; /* White background for FAQ */
    color: #333333;
}

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

.page-login__faq-item {
    background: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    background: #ffffff;
    transition: background-color 0.3s ease;
    color: #26A9E0; /* Brand primary color for question */
}

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

.page-login__faq-title {
    margin: 0;
    font-size: 1.1em;
    color: #26A9E0;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #26A9E0;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X or minus */
    background: #EA7C07; /* Login button color for active toggle */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

.page-login__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some padding to the bottom of the paragraph */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-login__hero-section {
        min-height: 70vh;
    }
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__login-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 80vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure padding for mobile */
    }

    .page-login__login-card {
        padding: 25px;
        margin: 0 15px; /* Add side margin on mobile */
    }

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

    .page-login__intro-text {
        font-size: 1em;
    }

    .page-login__form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__link-forgot-password {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

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

    .page-login__features-grid {
        grid-template-columns: 1fr;
    }

    .page-login__features-section,
    .page-login__cta-section,
    .page-login__faq-section {
        padding: 60px 0;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images fill container */
        height: auto !important;
        display: block !important;
    }
    
    .page-login__feature-icon {
        width: 150px !important; /* Adjust icon size for mobile, but keep above 200px effective area */
        height: auto !important;
        min-width: 200px; /* Ensure min width for display, even if original is smaller */
        min-height: 150px;
        object-fit: contain;
    }

    /* Content containers mobile padding */
    .page-login__container,
    .page-login__hero-section,
    .page-login__features-section,
    .page-login__cta-section,
    .page-login__faq-section {
        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__faq-question {
        padding: 15px;
    }

    .page-login__faq-title {
        font-size: 1em;
    }

    .page-login__faq-toggle {
        width: 25px;
        height: 25px;
        font-size: 1.2em;
    }

    .page-login__faq-answer {
        padding: 0 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__login-card {
        margin: 0 10px;
    }
    .page-login__main-title {
        font-size: 1.6em;
    }
    .page-login__intro-text {
        font-size: 0.95em;
    }
}