/* style/login.css */

/* Base styles for the login page content */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly setting for clarity, though body is white */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

.page-login__hero-section {
    position: relative;
    text-align: center;
    padding: 80px 20px 60px;
    overflow: hidden; /* Ensure image doesn't cause overflow */
    background-color: #000000; /* Dark background for hero text */
    color: #FFFFFF;
    display: flex; /* Use flex to center content over image */
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the background image for text readability */
    z-index: 0;
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

.page-login__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login color for main title emphasis */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.5;
}

.page-login__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.page-login__button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-login__content-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-login__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-weight: 700;
}

.page-login__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
    padding: 0 40px;
}

.page-login__section-image {
    display: block;
    max-width: 800px;
    height: auto;
    margin: 40px auto 60px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

.page-login__process-steps {
    padding: 0 40px 40px;
}

.page-login__ordered-list {
    list-style: none; /* Remove default numbering */
    counter-reset: step-counter; /* Initialize counter */
    padding: 0;
}

.page-login__list-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-login__list-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #FCBC45; /* Step number background */
    color: #000000; /* Step number text color */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-login__button--process-cta {
    display: block;
    width: fit-content;
    margin: 40px auto 60px;
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-login__button--process-cta:hover {
    background-color: #e6a73c;
    transform: translateY(-2px);
}

.page-login__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 40px 60px;
}

.page-login__security-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.page-login__security-card:hover {
    transform: translateY(-5px);
}

.page-login__security-icon {
    width: 200px; /* Enforce minimum size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block; 
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

.page-login__card-title {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__faq-section {
    margin-bottom: 80px;
}

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

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

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

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

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

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.page-login__faq-answer {
    padding: 20px 25px;
    background-color: #FFFFFF;
    color: #333333;
    font-size: 1.05em;
    line-height: 1.6;
    border-top: 1px solid #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-section {
        padding-top: 60px;
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .page-login {
        padding-top: var(--header-offset, 80px); /* Adjust for potential smaller mobile header */
    }
    .page-login__hero-section {
        padding: 60px 15px 40px;
        min-height: 400px;
    }
    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-login__intro-text {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__button {
        width: 80%;
        margin: 0 auto;
        padding: 12px 25px;
    }
    .page-login__content-section {
        margin: 40px auto;
        padding: 0 15px;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 30px;
    }
    .page-login__text-block {
        padding: 0 15px;
    }
    .page-login__section-image {
        max-width: 100%; /* Ensure images don't overflow */
        margin: 30px auto 40px;
    }
    .page-login__process-steps {
        padding: 0 15px 30px;
    }
    .page-login__list-item {
        padding-left: 60px;
        margin-bottom: 25px;
    }
    .page-login__list-item::before {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }
    .page-login__list-title {
        font-size: 1.2em;
    }
    .page-login__button--process-cta {
        width: 80%;
        margin: 30px auto 40px;
    }
    .page-login__security-grid {
        grid-template-columns: 1fr;
        padding: 0 15px 40px;
    }
    .page-login__security-card {
        padding: 25px;
    }
    .page-login__faq-list {
        padding: 0 15px 30px;
    }
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
        font-size: 1em;
    }

    /* Enforce mobile image size constraints for content images */
    .page-login img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure all images within .page-login maintain minimum display dimensions */
    .page-login__section-image, .page-login__security-icon {
        min-width: 200px;
        min-height: 200px;
    }
}