/* style/login.css */

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

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #000000; /* Dark background for hero */
    color: #ffffff; /* Light text for dark background */
    overflow: hidden;
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3; /* Subtle background image */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-login__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* filter: brightness(0.6); This is a filter, removed as per rules */
}

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

.page-login__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

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

.page-login__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-login__hero-button--login:hover {
    background-color: #e0a73b;
    border-color: #e0a73b;
}

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

.page-login__hero-button--register:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

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

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

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

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

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
    background-color: #f0f0f0;
}

.page-login__form-input:focus {
    border-color: #FCBC45;
    outline: none;
    box-shadow: 0 0 0 2px rgba(252, 188, 69, 0.3);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 30px;
}

.page-login__form-button--submit {
    background-color: #FCBC45;
    color: #000000;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    flex-grow: 1; /* Allow button to grow */
    margin-right: 10px; /* Space between button and link */
}

.page-login__form-button--submit:hover {
    background-color: #e0a73b;
}

.page-login__form-link {
    color: #FCBC45;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__form-link:hover {
    color: #e0a73b;
    text-decoration: underline;
}

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

.page-login__process-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-login__process-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.page-login__process-image img {
    width: 100%;
    max-width: 600px; /* Max width for consistency */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-login__process-list {
    flex: 2;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-login__process-item {
    background-color: #f0f0f0;
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid #FCBC45;
    border-radius: 5px;
}

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

.page-login__process-step-description {
    color: #555555;
}

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

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

.page-login__security-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.page-login__security-image img {
    width: 100%;
    max-width: 600px; /* Max width for consistency */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-login__security-list {
    flex: 2;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-login__security-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    padding: 20px;
    border-right: 5px solid #000000; /* Darker border for security */
    border-radius: 5px;
}

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

.page-login__security-tip-description {
    color: #555555;
}

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

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #000000;
    background-color: #f0f0f0;
    user-select: none; /* Prevent text selection on click */
}

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

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

/* No direct transform on details[open] as JS handles text content */

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

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

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

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

    .page-login__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

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

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

    .page-login__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

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

    .page-login__form-button--submit {
        margin-right: 0; /* Remove margin on mobile */
        width: 100%;
    }

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

    .page-login__process-image,
    .page-login__security-image {
        min-width: unset; /* Remove min-width to allow shrinking */
        width: 100%;
    }

    .page-login__process-image img,
    .page-login__security-image img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px; /* Ensure images are not too small */
    }

    .page-login__faq-question {
        font-size: 1.1em;
    }

    /* Ensure all images in .page-login are responsive and not too small */
    .page-login img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size for all content images */
        min-height: 200px; /* Enforce minimum size for all content images */
    }
}

/* Global image styling for the page content, ensuring no small icons */
.page-login img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Maintain aspect ratio */
}