/* style/login.css */

/* Base styling for the login page content */
.page-login {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: var(--secondary-color, #FFFFFF); /* White background as per color scheme */
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 80px 20px 40px; /* Adjust padding for visual balance */
    text-align: center;
    overflow: hidden; /* Contains the image */
    background-color: #000000; /* Dark background for hero section */
    color: #ffffff; /* Light text for dark background */
}

.page-login__hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above image */
    max-width: 900px;
    margin: 0 auto;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Highlight title with login color */
    font-weight: bold;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-login__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-login__btn {
    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, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.page-login__btn--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for login button */
}

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

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

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

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

.page-login__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    display: block;
}

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* White background */
    color: #333333;
}

.page-login__section-title {
    font-size: 2.5em;
    color: #000000; /* Main title color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-login__form-wrapper {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: #FCBC45;
    outline: none;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.95em;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__checkbox-label {
    color: #555555;
}

.page-login__forgot-password {
    color: #FCBC45;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #e6a73c;
    text-decoration: underline;
}

.page-login__submit-btn {
    background-color: #FCBC45;
    color: #000000;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

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

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

.page-login__register-link:hover {
    color: #e6a73c;
    text-decoration: underline;
}

/* Process Section */
.page-login__process-section {
    padding: 60px 0;
    background-color: #f0f0f0; /* Light gray background */
    color: #333333;
}

.page-login__process-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__process-image {
    flex: 1;
    min-width: 400px; /* Minimum size for content images */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px; /* Max width for image display */
    height: auto;
    display: block;
}

.page-login__process-image img,
.page-login__security-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
    object-fit: cover; /* Ensure aspect ratio is maintained while covering space */
}

.page-login__process-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 400px; /* Minimum size for content list */
}

.page-login__process-item {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.page-login__process-item:last-child {
    margin-bottom: 0;
}

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

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

.page-login__process-step-description {
    font-size: 1em;
    color: #555555;
}

/* Security Section */
.page-login__security-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* White background */
    color: #333333;
}

.page-login__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap-reverse; /* Image on right, text on left for desktop, reversed on mobile */
}

.page-login__security-text {
    flex: 1;
    min-width: 400px; /* Minimum size for content text */
}

.page-login__security-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555;
}

.page-login__security-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
    color: #555555;
}

.page-login__security-item {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-login__btn--learn-more {
    background-color: #000000; /* Dark button for learn more */
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__btn--learn-more:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-login__security-image {
    flex: 1;
    min-width: 400px; /* Minimum size for content images */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px; /* Max width for image display */
    height: auto;
    display: block;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #f0f0f0; /* Light gray background */
    color: #333333;
}

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

.page-login__faq-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.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: #FFFFFF;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-item[open] .page-login__faq-question {
    border-bottom: none;
}

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

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

.page-login__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
}

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

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

    .page-login__process-content,
    .page-login__security-content {
        flex-direction: column;
        align-items: center;
    }

    .page-login__process-image,
    .page-login__security-image,
    .page-login__process-list,
    .page-login__security-text {
        min-width: unset;
        width: 100%;
        max-width: 100%; /* Ensure images don't overflow */
    }
}

@media (max-width: 768px) {
    .page-login {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
    }

    .page-login__hero-section {
        padding: 60px 15px 30px;
    }

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

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

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

    .page-login__btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-login__form-wrapper {
        padding: 30px;
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-login__submit-btn {
        font-size: 1.1em;
    }

    .page-login__process-item,
    .page-login__security-item {
        font-size: 0.95em;
    }

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

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

    /* All images within .page-login must be responsive and not smaller than 200px */
    .page-login img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 200px;
        object-fit: cover; /* Ensure aspect ratio is maintained while covering space */
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__form-wrapper {
        padding: 20px;
    }
    .page-login__faq-question {
        font-size: 1em;
    }
}