/* style/login.css */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: #FFFFFF; /* Explicitly set to match body background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC and mobile */
}

.page-login__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #000000; /* Dark background for hero section */
    color: #FFFFFF; /* Light text on dark background */
    position: relative;
    overflow: hidden;
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.3; /* Slightly transparent to allow text to stand out */
}

.page-login__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.6); /* Darken image slightly, but not change color */
    /* No filter: invert(), sepia(), hue-rotate(), saturate() */
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

.page-login__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 180px;
    text-align: center;
    font-size: 1.1em;
}

.page-login__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for contrast */
    border: 2px solid #FCBC45;
}

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

.page-login__button--secondary {
    background-color: #FFFFFF; /* Register button color */
    color: #000000; /* Dark text for contrast */
    border: 2px solid #FFFFFF;
}

.page-login__button--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-login__section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f9f9f9; /* Light background for sections */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

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

.page-login__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 30px;
}

/* Features Section */
.page-login__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.page-login__feature-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
}

.page-login__feature-item img {
    width: 100%; /* Ensure images fill their container */
    height: auto;
    max-width: 300px; /* Example max-width, ensuring it's > 200px */
    margin-bottom: 15px;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* No filter properties */
}

.page-login__feature-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
}

.page-login__feature-text {
    color: #666666;
}

/* Process Section */
.page-login__process-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-login__process-item {
    background-color: #FFFFFF;
    border-left: 5px solid #FCBC45;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.page-login__process-step-title {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
}

.page-login__process-step-text {
    color: #666666;
}

.page-login__process-cta {
    margin-top: 30px;
}

/* Security Tips Section */
.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-login__security-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.page-login__security-tip-title {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
}

.page-login__security-tip-text {
    color: #666666;
}

.page-login__security-cta {
    margin-top: 30px;
}

/* FAQ Section */
.page-login__faq-list {
    margin-top: 30px;
}

.page-login__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-question {
    background-color: #FCBC45;
    color: #000000;
}

.page-login__faq-item[open] .page-login__faq-question .page-login__faq-toggle {
    content: '-';
}

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

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

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Change + to X-like */
}

.page-login__faq-answer {
    padding: 15px 20px;
    color: #555555;
    border-top: 1px solid #f0f0f0;
}

.page-login__faq-cta {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-login {
        padding-top: var(--header-offset, 120px); /* Ensure mobile also has offset */
    }
    .page-login__hero-section {
        padding: 40px 15px;
    }

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

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

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

    .page-login__button {
        width: 100%;
        max-width: 300px;
    }

    .page-login__section {
        margin: 30px auto;
        padding: 15px;
    }

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

    .page-login__section-description {
        font-size: 1em;
    }

    .page-login__features {
        flex-direction: column;
        gap: 20px;
    }

    .page-login__feature-item {
        max-width: 100%;
        min-width: unset;
    }

    /* Ensure content images don't overflow */
    .page-login img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure no content causes horizontal scroll on mobile */
@media (max-width: 768px) {
    .page-login {
        overflow-x: hidden;
    }
}

/* CSS for image size enforcement (min 200px) */
/* This rule applies to all images within .page-login */
.page-login img:not(.page-login__hero-image img) { /* Exclude hero image as it's full width cover */
    min-width: 200px;
    min-height: 200px;
    object-fit: contain; /* Or cover, depending on desired effect */
}

/* Override the specific image sizes from HTML attributes with max-width: 100% for mobile */
@media (max-width: 768px) {
    .page-login__hero-image img,
    .page-login__feature-item img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure no img in .page-login has fixed width/height less than 200px */
    .page-login img {
        width: auto; /* Allow auto width to scale with max-width */
        height: auto; /* Allow auto height to maintain aspect ratio */
        min-width: 200px; /* Still enforce minimum size, but allow scaling down from original large size */
        min-height: 200px;
    }
}