.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Assuming --secondary-color is #FFFFFF */
}

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

/* Hero Section */
.page-login__hero-section {
    padding-top: 10px; /* Small top padding as per rule */
    padding-bottom: 40px;
    text-align: center;
    background-color: var(--secondary-color); /* Light background */
    color: #333333;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-login__main-title {
    font-size: 2.8em;
    font-weight: bold;
    color: #017439; /* Brand color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
}

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

/* CTA Buttons */
.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit,
.page-login__btn-outline {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button takes full width */
    box-sizing: border-box;
}

.page-login__btn-primary,
.page-login__btn-submit {
    background-color: #C30808; /* Custom color for login/register buttons */
    color: #FFFF00; /* Custom font color for login/register buttons */
    border: 2px solid #C30808;
}

.page-login__btn-primary:hover,
.page-login__btn-submit:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand color */
    border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-login__dark-bg { /* For dark background sections */
    background-color: #017439;
    color: #ffffff;
}

.page-login__light-bg { /* For light background sections */
    background-color: #ffffff;
    color: #333333;
}

.page-login__section-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

.page-login__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section */
}

.page-login__login-card {
    background-color: #ffffff; /* Card background is white */
    color: #333333; /* Text on card is dark */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

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

.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: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__remember-me input {
    margin-right: 8px;
}

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

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

.page-login__no-account-text {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #333333;
}

.page-login__security-info {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 8px;
    color: #ffffff;
}

.page-login__sub-section-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom color for sub-titles in dark sections */
    text-align: center;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

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

.page-login__benefit-card {
    background-color: #f9f9f9; /* Slightly off-white for cards on white background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.page-login__benefit-icon {
    width: 100%;
    height: auto;
    max-width: 200px; /* Adjust max-width for icons */
    object-fit: contain;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.page-login__benefit-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439; /* Brand color */
    margin-bottom: 15px;
}

.page-login__benefit-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Make text grow to fill space */
}

.page-login__btn-outline {
    background-color: transparent;
    color: #017439;
    border: 1px solid #017439;
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: auto; /* Push to bottom */
}

.page-login__btn-outline:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-login__cta-explore {
    text-align: center;
    margin-top: 50px;
}

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

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}

.page-login__faq-item summary {
    display: block; /* For better styling control */
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
    color: #ffffff;
    outline: none;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: inherit;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Custom color for toggle */
}

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

.page-login__faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-login__faq-answer p {
    margin-bottom: 10px;
    color: inherit;
}

.page-login__faq-answer .page-login__cta-buttons {
    margin-top: 20px;
    justify-content: flex-start;
}

/* Final CTA Section */
.page-login__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

/* --- Responsive Styles (Mobile First / Media Queries) --- */
@media (max-width: 1024px) {
    .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-login__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General Mobile Adaptations */
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-login__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-login__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px !important;
    }
}