/* style/login.css */

/* Base styles for the login page, scoped with BEM */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body has #000000, sections will have specific backgrounds */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-login__hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.5); /* Slightly darken image for text readability */
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)); /* Darker overlay */
    z-index: -1;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 800px;
    padding: 40px 0;
}

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

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

/* Form Section */
.page-login__form-section {
    background-color: #000000; /* Dark background for the section */
    padding: 60px 0;
    color: #ffffff;
}

.page-login__form-container {
    display: flex;
    justify-content: center;
}

.page-login__form-wrapper {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

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

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.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;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.page-login__forgot-password-link {
    color: #26A9E0;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #EA7C07;
}

.page-login__btn-primary {
    background-color: #EA7C07; /* Login button color */
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* Ensure button looks like a button even if it's an anchor */
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

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

.page-login__register-link:hover {
    color: #EA7C07;
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: #000000;
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-login__benefits-section .page-login__section-title {
    margin-bottom: 20px;
}

.page-login__text-block {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    color: #f0f0f0;
}

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}

.page-login__benefit-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 200px; /* Limit height to prevent overly tall images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

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

.page-login__benefit-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-login__faq-section .page-login__section-title {
    margin-bottom: 50px;
    text-align: center;
}

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
    content: "−"; /* Visually change in JS */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    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;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__description {
        font-size: 1.1em;
    }
}

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

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

    .page-login__description {
        font-size: 1em;
    }

    .page-login__form-wrapper,
    .page-login__benefits-grid,
    .page-login__faq-list,
    .page-login__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

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

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

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

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

    .page-login__forgot-password-link {
        order: 2; /* Move below button */
    }

    .page-login__btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-section .page-login__hero-bg-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .page-login__benefit-icon {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__description {
        font-size: 0.95em;
    }
    .page-login__form-wrapper {
        padding: 30px 20px;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px;
    }
}

/* Color contrast fixes based on body background #000000 */
/* All sections have specific backgrounds or overlays, so direct .page-login color isn't strictly needed for content */
/* But ensuring text on dark backgrounds is light is crucial */
.page-login__dark-bg {
  color: #ffffff; /* Deep dark background, so text must be light */
}

/* Specific elements that might have brand colors */
.page-login__btn-primary {
  background: #EA7C07; /* Login button color */
  color: #ffffff; /* Ensure white text on button */
}

.page-login__forgot-password-link,
.page-login__register-link,
.page-login__benefit-title,
.page-login__faq-toggle {
  color: #26A9E0; /* Brand color for links/titles */
}

/* Ensure form input text is visible */
.page-login__form-input {
  color: #ffffff;
}
.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}