/* style/login.css */

/* Base Styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css var(--background-color) */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-login__hero-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__login-card {
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.8); /* Slightly transparent dark background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.page-login__main-title {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

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

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

.page-login__label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-weight: bold;
}

.page-login__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439; /* Brand color border */
    border-radius: 5px;
    background-color: #333333; /* Darker input background */
    color: #ffffff; /* Light input text */
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__input::placeholder {
    color: #ccc;
}

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background-color: #C30808; /* Custom login button color */
    color: #FFFF00; /* Custom login button font color */
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

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

.page-login__forgot-password {
    color: #017439; /* Brand color for link */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #00a04c;
}

.page-login__register-prompt {
    margin-top: 25px;
    color: #f0f0f0;
}

.page-login__register-link {
    color: #FFFF00; /* Custom register link font color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #ffcc00;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-login__benefits-intro {
    font-size: 1.1em;
    color: #e0e0e0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.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: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100%; /* Ensure images take full width of container */
    max-width: 200px; /* Max size for the icon */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 5px; /* Added for consistency */
}

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

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

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Darker background for contrast */
    color: #ffffff;
}

.page-login__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-login__text-content {
    flex: 1;
    min-width: 300px;
}

.page-login__security-section .page-login__section-title {
    text-align: left;
    margin-bottom: 20px;
}

.page-login__security-section p {
    margin-bottom: 15px;
    color: #e0e0e0;
}

.page-login__image-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__security-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: #017439; /* Brand color text by default */
    border: 2px solid #017439; /* Brand color border by default */
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-sizing: border-box;
}

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

/* Specific adjustment for secondary button in security section (dark bg) */
.page-login__security-section .page-login__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* White text on dark bg */
    border-color: #ffffff; /* White border on dark bg */
}

.page-login__security-section .page-login__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439; /* Brand color text on white bg */
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Lighter dark background */
    color: #ffffff;
}

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

.page-login__faq-item {
    background: #2a2a2a;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #017439; /* Brand color for question */
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    list-style: none; /* For details/summary */
    position: relative;
    user-select: none;
}
/* Hide default details marker */
.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-login__faq-item summary {
    list-style: none;
}


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

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-login__faq-answer {
    padding: 15px 25px 20px;
    background-color: #3a3a3a;
    color: #e0e0e0;
    font-size: 0.95em;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Call to Action Section */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color background */
    color: #ffffff;
    text-align: center;
}

.page-login__cta-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-login__cta-section .page-login__text-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-login__cta-section .page-login__section-title {
    text-align: left;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-login__cta-section p {
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-login__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-login__cta-section .page-login__btn-primary {
    background-color: #C30808; /* Custom register button color */
    color: #FFFF00; /* Custom register button font color */
    width: auto; /* Override 100% width from general btn-primary */
    padding: 15px 30px;
}

.page-login__cta-section .page-login__btn-secondary {
    color: #ffffff; /* White text on green background */
    border-color: #ffffff;
    width: auto; /* Override 100% width */
    padding: 15px 30px;
}

.page-login__cta-section .page-login__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-login__cta-section .page-login__image-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__security-content,
    .page-login__cta-content {
        flex-direction: column;
        text-align: center;
    }
    .page-login__security-section .page-login__section-title,
    .page-login__cta-section .page-login__section-title {
        text-align: center;
    }
    .page-login__cta-buttons {
        justify-content: center;
    }
}

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

    .page-login__container {
        padding: 0 15px !important;
    }

    .page-login__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

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

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

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

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

    .page-login__benefit-item {
        padding: 25px;
    }

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

    /* Images responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-image,
    .page-login__benefit-icon,
    .page-login__security-image,
    .page-login__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-login__image-content,
    .page-login__text-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons responsive */
    .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__form-actions {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }
}

/* Color Contrast Enforcement (based on body background #121212 being dark) */
.page-login__hero-section,
.page-login__dark-bg {
    background: #0a0a0a; /* Dark background */
    color: #ffffff;
}

.page-login__light-bg {
    background: #1a1a1a; /* Dark gray for contrast with brand dark green */
    color: #ffffff;
}

.page-login__section-title {
    color: #ffffff; /* Ensure titles are light on dark backgrounds */
}

.page-login p,
.page-login li,
.page-login__label,
.page-login__input::placeholder,
.page-login__forgot-password,
.page-login__benefits-intro {
    color: #f0f0f0; /* Light text for readability */
}

/* Specific color overrides */
.page-login__btn-primary {
    background-color: #C30808; /* Login button */
    color: #FFFF00; /* Login button font */
}

.page-login__register-link {
    color: #FFFF00; /* Register link font */
}

.page-login__faq-question {
    background-color: #017439; /* FAQ question background */
    color: #ffffff; /* FAQ question text */
}

.page-login__faq-answer {
    background-color: #3a3a3a; /* FAQ answer background */
    color: #e0e0e0; /* FAQ answer text */
}

/* No CSS filter for images */
.page-login img {
    filter: none !important;
}