.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background is white */
}

/* Hero Section */
.page-login__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    padding-bottom: 40px;
    background-color: #f5f5f5; /* Light background for hero */
    text-align: center;
}

.page-login__hero-image {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-login__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive H1 font size */
    color: #017439; /* Brand primary color */
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 25px;
}

/* Container for general content sections */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    box-sizing: border-box;
}

/* Section Titles */
.page-login__section-title {
    font-size: 2.2em;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-login__section-title--white {
    color: #ffffff;
}

/* Login Form Section */
.page-login__form-section {
    background-color: #ffffff; /* Explicitly light background for contrast */
    padding: 60px 0;
}

.page-login__login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #fcfcfc;
}

.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: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

.page-login__form-input::placeholder {
    color: #aaaaaa;
}

.page-login__form-actions {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for small screens */
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.05em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-login__btn-secondary {
    background-color: #017439; /* Brand primary color for secondary action */
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

.page-login__register-link {
    color: #017439; /* Brand primary color for links */
    text-decoration: none;
    font-weight: bold;
}

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

/* Security Section */
.page-login__security-section {
    background-color: #017439; /* Dark background with brand primary color */
    color: #ffffff; /* White text for contrast */
    padding: 60px 0;
}

.page-login__security-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-login__security-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__security-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    border-radius: 5px;
}

.page-login__security-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for highlights */
    margin-bottom: 10px;
}

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

/* CTA Buttons in Security Section */
.page-login__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

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

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f0f0f0;
    border-radius: 8px;
    list-style: none; /* For <summary> tag */
}

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

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

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

.page-login__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
    border-top: 1px solid #e0e0e0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: 10px; /* Mobile top padding */
        padding-bottom: 30px;
    }

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

    .page-login__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 for mobile */
    }

    .page-login__description {
        font-size: 1em;
    }

    .page-login__container {
        padding: 30px 15px;
    }

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

    /* Buttons and Button Containers */
    .page-login__form-actions,
    .page-login__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images and Image Containers */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-login__hero-image,
    .page-login__security-item,
    .page-login__security-item img,
    .page-login__login-form,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__security-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}