/* style/login.css */

/* General styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text on light body background */
    background-color: #FFFFFF; /* Default body background */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

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

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    margin-top: -50px; /* Adjust to center content visually */
}

.page-login__main-heading {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom font color for login/register */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

/* Login Card */
.page-login__login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
    color: #333333;
}

.page-login__card-title {
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
    color: #017439; /* Brand color for card title */
}

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

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

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

.page-login__form-input:focus {
    border-color: #017439;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

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

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #017439;
}

.page-login__checkbox-label {
    color: #555555;
}

.page-login__forgot-password {
    color: #017439; /* Brand color for links */
    text-decoration: none;
}

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

.page-login__login-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #C30808; /* Custom login button color */
    color: #FFFF00; /* Custom login button font color */
}

.page-login__login-button:hover {
    background-color: #a30707;
}

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

.page-login__register-link {
    color: #C30808; /* Custom register link color */
    text-decoration: none;
    font-weight: bold;
}

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

/* General Section Styles */
.page-login__section {
    padding: 60px 20px;
    text-align: center;
}

.page-login__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #017439; /* Brand color for section titles */
}

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

.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Why Choose Section */
.page-login__why-choose {
    background-color: #f9f9f9;
}

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

.page-login__feature-item {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
}

.page-login__feature-icon {
    width: 100%; /* Ensure image fills container */
    height: auto;
    max-width: 250px; /* Adjust as needed, but ensure min 200px */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-login__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-login__feature-text {
    font-size: 0.95em;
    color: #666666;
}

/* Login Guide Section */
.page-login__login-guide {
    background-color: #017439; /* Brand color background */
    color: #FFFFFF; /* White text on dark background */
}

.page-login__login-guide .page-login__section-title,
.page-login__login-guide .page-login__section-description {
    color: #FFFFFF;
}

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

.page-login__step-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
}

.page-login__step-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom font color for titles in dark section */
}

.page-login__step-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-login__troubleshooting {
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.page-login__troubleshooting-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-login__troubleshooting-text {
    font-size: 1.05em;
    margin-bottom: 25px;
    color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits {
    background-color: #FFFFFF;
}

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

.page-login__benefit-item {
    background: #f0fdf5; /* Light green tint for benefits */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
    color: #333333;
}

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

.page-login__benefit-text {
    font-size: 0.95em;
    color: #666666;
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #f0fdf5;
}

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

.page-login__faq-item {
    background: #FFFFFF;
    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: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #017439;
    list-style: none; /* For details/summary */
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-login__faq-item summary::marker {
    display: none;
}

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

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

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
    /* Using max-height for smooth transition with details tag */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-login__faq-item[open] .page-login__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
}

/* CTA Section */
.page-login__cta-section {
    background-color: #017439; /* Brand color background */
    color: #FFFFFF; /* White text on dark background */
    padding: 80px 20px;
}

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
    color: #FFFFFF;
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    display: inline-block;
    box-sizing: border-box; /* Crucial for responsive buttons */
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-heading {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    /* Mobile General */
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-login__hero-content {
        margin-top: 0;
    }
    .page-login__main-heading {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-login__login-card {
        padding: 30px 20px;
        max-width: 95%;
    }
    .page-login__card-title {
        font-size: 1.8em;
    }
    .page-login__form-input {
        width: calc(100% - 20px);
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__section {
        padding: 40px 15px;
    }
    .page-login__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__features-grid,
    .page-login__steps-grid,
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-login__feature-item,
    .page-login__step-item,
    .page-login__benefit-item {
        padding: 25px;
    }
    .page-login__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        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;
    }
    .page-login__faq-item {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-login img { /* Catch-all for images */
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size globally for content images */
        min-height: 200px !important; /* Enforce min size globally for content images */
    }
}

@media (max-width: 480px) {
    .page-login__main-heading {
        font-size: 2em;
    }
    .page-login__card-title {
        font-size: 1.5em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
}