.page-login {
    color: #333333; /* Dark text for default white body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header offset for main content */
.page-login.page-content {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

.page-login__hero-section {
    position: relative;
    background-color: #f8f8f8; /* Light background for contrast with form */
    padding: 60px 20px 80px; /* Adjust padding to accommodate form */
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-login__main-title {
    font-size: 2.8em;
    color: #8B0000; /* Auxiliary color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-login__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    opacity: 0.6; /* Make it subtle background */
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-login__login-form-container {
    background-color: #ffffff; /* White background for the form */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 40px auto 0;
    border: 2px solid #FFD700; /* Gold border */
    position: relative;
    z-index: 3; /* Ensure form is on top */
}

.page-login__form-title {
    font-size: 2em;
    color: #8B0000; /* Auxiliary color for form title */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-login__login-form {
    text-align: left;
}

.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% - 24px); /* Account for padding */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: #FFD700; /* Gold focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.page-login__login-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Dark red text for contrast */
    padding: 14px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-login__login-button:hover {
    background-color: #e6c200; /* Darker gold on hover */
    transform: translateY(-2px);
}

.page-login__register-link {
    color: #8B0000; /* Dark red link */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #FFD700; /* Gold on hover */
    text-decoration: underline;
}

.page-login__forgot-password {
    display: block;
    margin-top: 20px;
    color: #555555;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #FFD700; /* Gold on hover */
    text-decoration: underline;
}

.page-login__section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.page-login__section-title {
    font-size: 2.2em;
    color: #8B0000; /* Auxiliary color for section titles */
    margin-bottom: 25px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__process-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-login__process-item {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__process-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-login__process-step-title {
    font-size: 1.4em;
    color: #FFD700; /* Gold for step titles */
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-login__process-image,
.page-login__security-image,
.page-login__faq-image {
    margin-top: 40px;
}

.page-login__process-image img,
.page-login__security-image img,
.page-login__faq-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.page-login__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-login__security-item-title {
    font-size: 1.4em;
    color: #FFD700; /* Gold for security titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__security-item-description {
    color: #555555;
    font-size: 1em;
}

.page-login__faq-items {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: left;
}

.page-login__faq-item {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden; /* For smooth collapse */
}

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

.page-login__faq-question:hover {
    background-color: #fffaf0; /* Light gold tint on hover */
}

.page-login__faq-question::marker {
    display: none; /* Hide default marker for details summary */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-login__main-title {
        font-size: 2.2em;
    }

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

    .page-login__login-form-container {
        padding: 30px;
        max-width: 90%;
    }

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

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

    .page-login__login-button {
        width: 100%;
        text-align: center;
    }

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

    .page-login__process-list,
    .page-login__security-list {
        grid-template-columns: 1fr;
    }

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

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

    /* Mobile image constraint */
    .page-login img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small even on mobile */
        min-height: 200px; /* Ensure images are not too small even on mobile */
    }
}

@media (max-width: 480px) {
    .page-login__hero-section {
        padding: 40px 15px 60px;
    }

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

    .page-login__login-form-container {
        padding: 25px;
    }

    .page-login__form-title {
        font-size: 1.5em;
    }

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

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