/* style/login.css */

/* Base styles for the login page content */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #f8f8f8; /* Slightly off-white background for the page content */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #0A2463; /* Dark blue background for hero section */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px 40px; /* Adjusted padding */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Ensure hero section has a minimum height */
}

.page-login__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 1;
}

.page-login__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

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

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

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-login__button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.page-login__button--primary {
    background-color: #E3B23C; /* Gold */
    color: #0A2463; /* Dark blue */
}

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

.page-login__button--secondary {
    background-color: transparent;
    color: #E3B23C; /* Gold */
    border: 2px solid #E3B23C;
}

.page-login__button--secondary:hover {
    background-color: #E3B23C;
    color: #0A2463;
    transform: translateY(-2px);
}

/* Content Sections */
.page-login__content-section {
    padding: 60px 0;
}

.page-login__content-section:nth-of-type(odd) {
    background-color: #ffffff;
}

.page-login__content-section:nth-of-type(even) {
    background-color: #f0f0f0;
}

.page-login__section-title {
    font-size: 2em;
    color: #0A2463; /* Dark blue */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-login__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #E3B23C; /* Gold underline */
}

.page-login__paragraph {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #555555;
}

/* Login Form Area */
.page-login__login-form-area .page-login__paragraph {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    margin: 40px auto;
    text-align: left;
}

.page-login__card-title {
    font-size: 1.8em;
    color: #0A2463;
    margin-bottom: 30px;
    text-align: center;
}

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

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

.page-login__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__input:focus {
    border-color: #E3B23C;
    outline: none;
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-login__button--submit {
    flex-grow: 1;
    text-align: center;
    background-color: #0A2463; /* Dark blue */
    color: #ffffff;
    padding: 14px 25px;
}

.page-login__button--submit:hover {
    background-color: #1a3c7c;
}

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

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

.page-login__register-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95em;
    color: #555555;
}

/* Step-by-Step Process */
.page-login__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-login__step-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-login__step-title {
    font-size: 1.5em;
    color: #0A2463;
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.page-login__step-list li:nth-child(1) .page-login__step-title::before { content: '1'; }
.page-login__step-list li:nth-child(2) .page-login__step-title::before { content: '2'; }
.page-login__step-list li:nth-child(3) .page-login__step-title::before { content: '3'; }
.page-login__step-list li:nth-child(4) .page-login__step-title::before { content: '4'; }

.page-login__step-title::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #E3B23C;
    color: #0A2463;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8em;
}

.page-login__step-description {
    font-size: 0.95em;
    color: #555555;
    text-align: justify;
}

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

.page-login__security-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__security-icon {
    width: 250px; /* Min size 200px */
    height: 187px; /* Maintain aspect ratio for 4:3, or adjust based on image */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.page-login__security-title {
    font-size: 1.3em;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-login__security-description {
    font-size: 0.9em;
    color: #555555;
    text-align: justify;
}

/* FAQ Area */
.page-login__faq-list {
    margin-top: 40px;
}

.page-login__faq-item {
    background-color: #ffffff;
    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;
    width: 100%;
    padding: 20px 25px;
    background-color: #f9f9f9;
    color: #0A2463;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-login__faq-question::after {
    content: '+';
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #E3B23C;
}

.page-login__faq-question.active {
    background-color: #E3B23C; /* Gold background when active */
    color: #0A2463; /* Dark blue text */
}

.page-login__faq-question.active::after {
    content: '-';
    transform: rotate(0deg); /* No rotation needed for '-' */
    color: #0A2463;
}

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

.page-login__faq-answer p {
    margin: 15px 0;
    color: #555555;
    font-size: 0.95em;
}

/* Expanded state for FAQ answer */
.page-login__faq-answer.active {
    max-height: 500px; /* Adjust as needed */
    padding: 15px 25px;
}


/* CTA Section at the bottom */
.page-login__cta-section {
    background-color: #0A2463; /* Dark blue background */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-login__cta-section .page-login__section-title {
    color: #E3B23C; /* Gold title */
}

.page-login__cta-section .page-login__section-title::after {
    background-color: #E3B23C;
}

.page-login__cta-section .page-login__paragraph {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__intro-text {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 60px 15px 30px;
        min-height: 350px;
    }
    .page-login__hero-content {
        padding: 15px;
    }
    .page-login__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-login__intro-text {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__button {
        width: 100%;
        max-width: 300px;
    }
    .page-login__content-section {
        padding: 40px 0;
    }
    .page-login__container {
        padding: 15px;
    }
    .page-login__section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    .page-login__login-card {
        padding: 30px;
        margin: 30px auto;
    }
    .page-login__card-title {
        font-size: 1.5em;
        margin-bottom: 25px;
    }
    .page-login__form-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__button--submit {
        width: 100%;
    }
    .page-login__step-item {
        padding: 25px;
    }
    .page-login__step-title {
        font-size: 1.3em;
        padding-left: 35px;
    }
    .page-login__step-title::before {
        width: 28px;
        height: 28px;
        font-size: 0.75em;
    }
    .page-login__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__security-icon {
        width: 200px; /* Enforce min 200px */
        height: 150px; /* Maintain aspect ratio */
    }
    .page-login__security-title {
        font-size: 1.2em;
    }
    .page-login__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-answer.active {
        padding: 10px 20px;
    }
    .page-login__faq-answer p {
        margin: 10px 0;
    }
    /* Ensure content area images are responsive and not too small */
    .page-login img {
        max-width: 100%;
        height: auto;
    }
    /* Specific rule for security icons to ensure min size even on mobile if not already covered */
    .page-login__security-item .page-login__security-icon {
        min-width: 200px;
        min-height: 150px; /* Adjust height to maintain aspect ratio for 200px width */
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.6em;
    }
    .page-login__hero-section {
        padding: 40px 10px 20px;
        min-height: 300px;
    }
    .page-login__hero-content {
        padding: 10px;
    }
    .page-login__section-title {
        font-size: 1.3em;
    }
    .page-login__button {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    .page-login__login-card {
        padding: 20px;
    }
    .page-login__card-title {
        font-size: 1.3em;
    }
    .page-login__label {
        font-size: 0.9em;
    }
    .page-login__input {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    .page-login__faq-question {
        font-size: 0.95em;
        padding: 12px 15px;
    }
    .page-login__faq-answer p {
        font-size: 0.9em;
    }
}