/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Matches shared.css body background */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    box-sizing: border-box;
}

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

.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;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-login__main-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-login {
    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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-login__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin-right: 15px;
}

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

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

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

.page-login__btn-login {
    background-color: #EA7C07; /* Custom login button color */
    color: #ffffff;
    border: 2px solid #EA7C07;
    width: 100%;
    margin-top: 20px;
}

.page-login__btn-login:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Darker background for form section */
    color: #ffffff;
}

.page-login__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
}

.page-login__login-form-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white card background */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-login__login-form {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 20px;
}

.page-login__link-forgot-password {
    color: #26A9E0;
    text-decoration: none;
    font-size: 0.95em;
    margin-top: 10px;
}

.page-login__link-forgot-password:hover {
    text-decoration: underline;
}

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

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

.page-login__link-register:hover {
    text-decoration: underline;
}

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

.page-login__form-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block; /* Ensure no extra space below image */
    min-width: 200px;
    min-height: 200px;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #121212; /* Dark background */
    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: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    display: block; /* Remove extra space below img */
    min-width: 200px;
    min-height: 200px;
}

.page-login__card-title {
    font-size: 1.8em;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 15px;
}

.page-login__card-description {
    font-size: 1em;
    color: #ccc;
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background */
    color: #ffffff;
    text-align: center;
}

.page-login__cta-content {
    max-width: 800px;
}

.page-login__text-block {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


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

.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
    border-radius: 8px;
    margin-bottom: 15px;
    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: #ffffff;
    cursor: pointer;
    background-color: #2a2a2a; /* Slightly darker background for question */
    transition: background-color 0.3s ease;
}

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

.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);
}

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

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px; /* Adjust padding for open state */
}

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

/* Color Contrast Safeguards */
.page-login__dark-bg {
    background-color: #121212;
    color: #ffffff;
}
.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
}
/* Overriding specific sections for explicit contrast, if needed */
.page-login__form-section,
.page-login__cta-section {
    background-color: #1a1a1a; /* Darker than body, but still dark */
    color: #ffffff;
}
.page-login__benefits-section,
.page-login__faq-section {
    background-color: #121212; /* Same as body, for consistency */
    color: #ffffff;
}


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

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Mobile header offset */
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        height: 500px;
    }

    .page-login__hero-content {
        padding: 15px;
    }

    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-login {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Buttons take full width */
        margin-right: 0;
        margin-bottom: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__cta-section,
    .page-login__faq-section {
        padding: 40px 0;
    }

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

    .page-login__form-wrapper {
        flex-direction: column;
        padding: 25px;
        gap: 25px;
    }

    .page-login__login-form,
    .page-login__form-image {
        min-width: unset;
        width: 100%;
    }

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

    .page-login__benefit-card img {
        height: auto;
    }

    .page-login__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }

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

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

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__form-wrapper,
    .page-login__benefits-grid,
    .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 */
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-login {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}

/* Ensure no images under 200px are displayed in content area */
.page-login img {
  min-width: 200px;
  min-height: 200px;
}
/* Override for specific elements that might need to be smaller if they were icons (but they are not allowed) */
/* This ensures even if a tiny image somehow gets through, it's forced larger. */
.page-login__benefit-card img,
.page-login__form-image img {
  min-width: 200px;
  min-height: 200px;
}