/* style/login.css */

/* Base styles for the login page, ensuring light text on dark body background */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #000000; /* Body background is dark */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    padding-bottom: 60px;
    background-color: #000000; /* Dark background as per body */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    overflow: hidden;
}

.page-login__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    max-width: 600px;
    z-index: 1;
}

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

.page-login__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for card background */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__card-title {
    font-size: 2em;
    color: #FFFFFF;
    margin-bottom: 25px;
    text-align: center;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #26A9E0;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.page-login__form-input:focus {
    outline: none;
    border-color: #EA7C07; /* Login specific color on focus */
    background-color: rgba(255, 255, 255, 0.1);
}

.page-login__login-button {
    width: 100%;
    padding: 15px 25px;
    background-color: #EA7C07; /* Login button color */
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block; /* Ensure it takes full width */
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.page-login__login-button:hover {
    background-color: #d16e06;
    transform: translateY(-2px);
}

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

.page-login__link {
    color: #26A9E0; /* Brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__link:hover {
    color: #EA7C07; /* Login specific color on hover */
    text-decoration: underline;
}

.page-login__link-separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

.page-login__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    filter: brightness(0.7); /* Darken image to ensure text contrast */
}

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    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);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-8px);
    background-color: rgba(38, 169, 224, 0.2); /* Brand color highlight */
}

.page-login__benefit-icon {
    width: 200px; /* Min size */
    height: 150px; /* Min size, maintain aspect ratio */
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(38, 169, 224, 0.5)); /* Brand color glow */
}

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

.page-login__benefit-text {
    font-size: 1em;
    color: #e0e0e0;
}

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

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

.page-login__step-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #FFFFFF;
    font-size: 2em;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(38, 169, 224, 0.6);
}

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

.page-login__step-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-login__cta-area {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background-color: rgba(38, 169, 224, 0.1);
    border-radius: 10px;
    border: 1px dashed #26A9E0;
}

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

.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

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

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    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);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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.05);
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.1);
}

.page-login__faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: #FFFFFF;
}

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

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03);
}

.page-login__faq-answer p {
    margin: 0;
    padding-bottom: 20px;
    font-size: 1em;
    color: #e0e0e0;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus sign */
}

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

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

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

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

    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

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

    .page-login__login-button,
    .page-login__btn-secondary {
        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-section,
    .page-login__guide-section,
    .page-login__faq-section {
        padding: 50px 0;
    }

    .page-login__section-title {
        font-size: 1.8em;
        padding-top: 20px;
    }

    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-login__benefits-grid,
    .page-login__guide-steps {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-login__benefit-icon {
        width: 150px;
        height: 100px;
    }

    .page-login__faq-question h3 {
        font-size: 1.1em;
        padding-right: 10px; /* Prevent text overlapping toggle */
    }

    /* Mobile image adaptation */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__cta-area,
    .page-login__login-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-login__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-login__hero-image {
        min-width: 200px !important; /* Ensure min size for content images */
        min-height: 200px !important;
    }

    .page-login__benefit-card img {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

/* Ensure content area images are at least 200px */
.page-login img:not(.page-login__hero-image) {
    min-width: 200px;
    min-height: 200px;
    display: block; /* Ensure block for proper sizing */
    margin: 0 auto; /* Center small images */
}

/* Contrast Fixes */
.page-login__dark-bg {
    color: #ffffff; /* Deep dark background, light text */
}

.page-login__light-bg {
    color: #ffffff; /* Slightly lighter dark background, light text */
}

.page-login__btn-primary {
    background: #EA7C07; /* Login button color */
    color: #ffffff;
}

.page-login__btn-secondary {
    background: transparent;
    color: #26A9E0;
    border-color: #26A9E0;
}
.page-login__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Ensure all images maintain original color */
.page-login img {
    filter: none !important; /* Absolutely no filter */
}

/* Specific image sizing for display */
.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-login__benefit-icon {
    width: 200px; /* Display width */
    height: 150px; /* Display height */
    object-fit: contain;
}