/* style/login.css */

.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for clarity, matches body default */
}

.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    overflow: hidden;
}

.page-login__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
    width: 100%; /* Ensure container takes full width on smaller screens */
    box-sizing: border-box;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white for the card */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 40px auto; /* Center the card */
    text-align: left;
    color: #333333;
}

.page-login__main-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for title */
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: center;
}

.page-login__subtitle {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    text-align: center;
}

.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;
}

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

.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: #017439; /* Brand primary color */
    text-decoration: none;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom color for login button */
    color: #FFFF00; /* Custom color for login button text */
    margin-bottom: 15px;
}

.page-login__btn-primary:hover {
    background-color: #a00606; /* Darker red on hover */
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 20px;
    color: #555555;
}

.page-login__register-prompt p {
    margin-bottom: 10px;
}

.page-login__btn-secondary {
    background-color: #C30808; /* Custom color for register button */
    color: #FFFF00; /* Custom color for register button text */
    border: 1px solid #C30808;
}

.page-login__btn-secondary:hover {
    background-color: #a00606; /* Darker red on hover */
    color: #ffffff;
}

.page-login__benefits-section,
.page-login__cta-section,
.page-login__faq-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

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

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

.page-login__benefit-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #333333;
}

.page-login__benefit-item img {
    width: 100%; /* Ensure image fills container */
    height: auto;
    max-width: 250px; /* Max width for benefit icons */
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__benefit-text {
    font-size: 1em;
    color: #555555;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__cta-button {
    max-width: 300px; /* Limit individual button width */
    width: 100%; /* Ensure full width on mobile */
}

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

.page-login__faq-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333333;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-login__login-card {
        padding: 30px;
        margin: 20px auto;
        max-width: 90%;
    }

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

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

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

    .page-login__section-description {
        font-size: 0.95em;
    }

    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__login-card,
    .page-login__benefit-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__hero-section .page-login__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-login__login-card {
        margin-left: 0;
        margin-right: 0;
    }

    /* Mobile button responsiveness */
    .page-login__cta-button,
    .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;
    }
    
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
    }

    /* Ensure no horizontal scroll */
    .page-login {
        overflow-x: hidden;
    }
}