/* 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 from shared.css */
}

/* Container for sections */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh; /* Ensure it's tall enough */
    background-color: #017439; /* Brand color as background for hero */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

.page-login__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

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

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    color: #f0f0f0;
}

.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for form background */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    text-align: left;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-login__form-input:focus {
    border-color: #FFFF00;
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.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;
    gap: 8px;
}

.page-login__checkbox {
    width: 18px;
    height: 18px;
    accent-color: #017439; /* Checkbox color */
}

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

.page-login__forgot-password-link {
    color: #FFFF00; /* Custom color for link */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-login__submit-button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

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

.page-login__btn-login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

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

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

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

.page-login__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

/* Generic Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff; /* Default for dark background sections */
    line-height: 1.3;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0; /* Default for dark background sections */
}

/* Features Section */
.page-login__features-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Body background from shared.css */
    color: #ffffff; /* Text for dark background */
}

.page-login__light-bg-container {
    background-color: #FFFFFF; /* White background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-login__light-bg-container .page-login__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-login__light-bg-container .page-login__section-description {
    color: #555555;
}

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

.page-login__feature-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

.page-login__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__feature-icon {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
}

.page-login__security-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-login__security-text {
    flex: 1;
}

.page-login__sub-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for sub-titles for prominence */
}

.page-login__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-login__security-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #ffffff;
}

.page-login__security-list li::before {
    content: '✓';
    color: #FFFF00;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-login__list-highlight {
    color: #FFFF00;
}

.page-login__security-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Issues Section */
.page-login__issues-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Body background */
    color: #ffffff;
}

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

.page-login__issue-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #333333; /* Dark text for light card background */
}

/* Mobile App Section */
.page-login__mobile-app-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
}

.page-login__app-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-login__app-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-login__app-text {
    flex: 1;
}

.page-login__app-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-login__app-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #ffffff;
}

.page-login__app-list li::before {
    content: '★'; /* Star icon for app features */
    color: #FFFF00;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-login__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #C30808; /* Consistent button color */
    color: #FFFF00; /* Consistent button text color */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    text-align: center;
    max-width: 100%; /* Important for mobile */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__cta-button:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

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

.page-login__faq-list {
    margin-top: 40px;
}

.page-login__faq-item {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #333333; /* Dark text for light card background */
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    color: #017439; /* Brand color for FAQ questions */
}

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Change to minus sign visually */
}

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

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px 30px;
}

.page-login__faq-answer .page-login__text-block {
    margin-bottom: 0;
    color: #555555;
}

.page-login__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Dark background elements */
.page-login__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__sub-title {
    color: #FFFF00;
}

.page-login__dark-bg .page-login__text-block {
    color: #f0f0f0;
}

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

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

    .page-login__security-content,
    .page-login__app-content {
        flex-direction: column;
    }

    .page-login__security-image-wrapper,
    .page-login__app-image-wrapper {
        margin-top: 30px;
    }
}

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

    .page-login__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__login-form-wrapper {
        padding: 30px 20px;
    }

    .page-login__form-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }

    .page-login__light-bg-container {
        padding: 40px 20px;
    }

    .page-login__feature-card,
    .page-login__issue-card {
        padding: 25px;
    }

    .page-login__card-title {
        font-size: 1.3em;
    }

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

    .page-login__text-block {
        font-size: 0.95em;
    }

    .page-login__security-list li,
    .page-login__app-list li {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .page-login__faq-question {
        padding: 18px 25px;
    }

    .page-login__faq-title {
        font-size: 1.1em;
    }

    .page-login__faq-answer {
        padding: 15px 25px;
    }

    /* Mobile specific image, video, button adaptations */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper,
    .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 !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .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 !important;
        padding-right: 15px !important;
    }

    .page-login__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__form-title {
        font-size: 1.6em;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__sub-title {
        font-size: 1.3em;
    }
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
}