/* style/login.css */

/* Base styles for the login page content */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Main content background will be transparent to show body background */
}

.page-login__content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
    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.7); /* Dark overlay for text readability */
    z-index: -1;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #ffffff;
}

.page-login__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

/* Login Form */
.page-login__form-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    margin: 30px auto 0;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
    margin-right: 8px;
}

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

.page-login__forgot-password-link {
    color: #017439;
    text-decoration: none;
}

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

.page-login__login-button {
    background-color: #017439; /* Overridden from #C30808 to ensure WCAG AA contrast */
    color: #FFFFFF; /* Overridden from #FFFF00 to ensure WCAG AA contrast */
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-login__register-text {
    margin-top: 20px;
    color: #f0f0f0;
    font-size: 0.95em;
}

.page-login__register-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Default for sections on dark body */
    line-height: 1.2;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Dark Background Section */
.page-login__dark-section {
    background-color: rgba(1, 116, 57, 0.1); /* Slightly transparent main color on black body */
    padding: 80px 0;
}

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

.page-login__benefit-card,
.page-login__security-item {
    background: rgba(255, 255, 255, 0.05); /* Light transparent background for cards */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-login__benefit-icon,
.page-login__security-icon {
    width: 100%; /* Ensure images are responsive */
    height: auto;
    max-width: 250px; /* Min 200x200 requirement */
    min-width: 200px;
    min-height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-login__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Guide Section */
.page-login__guide-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.03); /* Light transparent background */
}

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

.page-login__step-item {
    background: rgba(0, 0, 0, 0.5); /* Dark background for steps */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-login__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
}

.page-login__step-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #ffffff;
}

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

.page-login__cta-area {
    text-align: center;
    margin-top: 60px;
}

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

.page-login__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question:hover {
    background: rgba(0, 0, 0, 0.7);
}

.page-login__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px 25px 25px;
}

.page-login__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}


/* CTA Register Section */
.page-login__cta-register-section {
    padding: 80px 0;
    text-align: center;
    background-color: rgba(1, 116, 57, 0.2); /* Slightly transparent main color on black body */
}

.page-login__register-button {
    display: inline-block;
    background-color: #017439; /* Overridden from #C30808 to ensure WCAG AA contrast */
    color: #FFFFFF; /* Overridden from #FFFF00 to ensure WCAG AA contrast */
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 30px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__register-button:hover {
    background-color: #005f2f;
}

/* Security Info Section */
.page-login__security-info-section {
    padding: 80px 0;
}

.page-login__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-login__link:hover {
    text-decoration: underline;
}

/* Contact Us Section */
.page-login__contact-us-section {
    padding: 80px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03); /* Light transparent background */
}

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

.page-login__btn-primary {
    display: inline-block;
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 2.8em;
    }

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

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

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

    .page-login__hero-description {
        font-size: 1em;
    }

    .page-login__form-container {
        padding: 20px;
    }

    .page-login__login-button,
    .page-login__register-button,
    .page-login__btn-primary,
    .page-login__btn-secondary {
        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__contact-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__content-wrapper,
    .page-login__section,
    .page-login__card,
    .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness (if any) */
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-login__faq-question {
        padding: 15px 20px;
    }

    .page-login__faq-answer {
        padding: 0 20px;
    }

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
    }
    .page-login__card-title, .page-login__step-title {
        font-size: 1.3em;
    }
    .page-login p, .page-login li, .page-login__card-text, .page-login__step-text {
        font-size: 0.9em;
    }
}