/* style/login.css */

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

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

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

.page-login__dark-bg {
    background-color: #002060;
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-login__btn-primary {
    display: inline-block;
    background-color: #FFD700; /* Gold for primary action */
    color: #002060;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.page-login__link {
    color: #002060;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__link:hover {
    color: #FFD700;
}

.page-login__link--bold {
    font-weight: bold;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 20px;
}

.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, 32, 96, 0.7); /* Dark blue overlay */
    z-index: 2;
}

.page-login__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-login__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-login__form-section .page-login__container.page-login__card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.page-login__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__form-group {
    display: flex;
    flex-direction: column;
}

.page-login__form-label {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #002060;
    font-weight: bold;
}

.page-login__form-input {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

.page-login__form-input:focus {
    border-color: #FFD700;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.page-login__form-submit-btn {
    margin-top: 20px;
    width: 100%;
}

.page-login__form-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    margin-top: 15px;
}

.page-login__link-separator {
    color: #cccccc;
}

.page-login__register-text {
    margin: 0;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
}

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

.page-login__benefit-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-login__benefit-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-login__benefit-description {
    font-size: 1em;
    color: #555555;
}

/* Steps Section */
.page-login__steps-section {
    padding: 80px 0;
}

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

.page-login__step-item {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

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

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

.page-login__step-description {
    font-size: 0.95em;
    opacity: 0.8;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
}

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    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;
    color: #002060;
    margin: 0;
    font-weight: bold;
}

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

.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-color: #f8f8f8;
    color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Ensure it expands */
    padding: 15px 25px;
}

.page-login__faq-answer p {
    margin-bottom: 0;
    font-size: 0.95em;
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-login__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
}

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

.page-login__cta-button {
    min-width: 250px;
}

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

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-login__hero-title {
        font-size: 2.5em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-login__benefits-grid, .page-login__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-login__form-section .page-login__container.page-login__card {
        padding: 30px 20px;
    }
    .page-login__faq-question, .page-login__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .page-login__cta-title {
        font-size: 2em;
    }
    .page-login__cta-description {
        font-size: 1em;
    }

    /* Mobile image 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,
    .page-login__form-section .page-login__container.page-login__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button responsiveness */
    .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,
    .page-login__form-links {
        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__form-links {
        flex-direction: column;
        align-items: center;
    }
    .page-login__link-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__cta-title {
        font-size: 1.8em;
    }
}