/* 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: var(--primary-color, #0A1931); /* Assuming primary-color is the body background */
}

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

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

.page-login__hero-background {
    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: 800px;
    padding: 20px;
}

.page-login__main-title {
    font-size: 3.5em;
    color: #FFD700; /* Accent color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Form Section */
.page-login__form-section {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff; /* Light background for the form */
    color: #333333; /* Dark text for light background */
}

.page-login__section-title {
    font-size: 2.5em;
    color: #0A1931;
    margin-bottom: 40px;
}

.page-login__section-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-form {
    max-width: 400px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.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 #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

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

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

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

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

.page-login__forgot-password-link {
    color: #0A1931;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #FFD700;
}

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

.page-login__btn-primary:hover {
    background-color: #FFD700;
    color: #0A1931;
}

.page-login__register-text {
    margin-top: 30px;
    color: #555555;
    font-size: 1em;
}

.page-login__register-link {
    color: #0A1931;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Security Section */
.page-login__dark-section {
    background-color: #0A1931;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-login__dark-section .page-login__section-title {
    color: #FFD700;
}

.page-login__dark-section .page-login__section-description {
    color: #f0f0f0;
}

.page-login__security-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-login__feature-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex: 1 1 300px; /* Allow cards to wrap */
    box-sizing: border-box;
    min-width: 200px; /* Enforce min-width for cards to prevent them from becoming too small */
}

.page-login__feature-icon {
    width: 200px; /* Ensure display size is at least 200px */
    height: 200px; /* Ensure display size is at least 200px */
    object-fit: contain; /* or cover, depending on desired look for square images */
    margin-bottom: 20px;
    max-width: 100%;
}

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

.page-login__feature-description {
    color: #f0f0f0;
    font-size: 1em;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FFD700;
    color: #0A1931;
    border: 2px solid #FFD700;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: 40px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-secondary:hover {
    background-color: #0A1931;
    color: #FFD700;
    border-color: #FFD700;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background: #f0f0f0;
    color: #0A1931;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700;
}

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

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

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

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

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

.page-login__cta-section .page-login__section-title {
    color: #FFD700;
}

.page-login__cta-section .page-login__section-description {
    color: #f0f0f0;
}

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

.page-login__cta-button {
    min-width: 200px; /* Ensure buttons are not too small */
}

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

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

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

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

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

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

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

    .page-login__security-features {
        flex-direction: column;
        align-items: center;
    }

    .page-login__feature-card {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .page-login__feature-icon {
        width: 200px !important; /* Ensure display size is at least 200px */
        height: 200px !important; /* Ensure display size is at least 200px */
    }

    .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; /* Stack buttons vertically on mobile */
    }

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

    /* Images 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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure content sections have padding on mobile to prevent overflow */
    .page-login__form-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__hero-section {
        height: 350px;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
}