/* style/login.css */

/* Base styles for the login page */
.page-login {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #f4f4f4; /* Light background from shared.css */
    color: #333333; /* Dark text for contrast on light background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff; /* Light text on dark/rich background of hero image */
    text-align: center;
    padding: 80px 0; /* Adjust padding as needed, hero image will fill */
}

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

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-login__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-login__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 180px; /* Ensure buttons are not too small */
    text-align: center;
    font-size: 1.1em;
}

.page-login__button--primary {
    background-color: #FFD700; /* Gold */
    color: #0A192F; /* Dark blue */
    border: 2px solid #FFD700;
}

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

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

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

/* General Section Styling */
.page-login__section-title {
    font-size: 2.5em;
    color: #0A192F; /* Dark blue for titles */
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

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

/* Info Section */
.page-login__info-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.page-login__info-image {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Process Section */
.page-login__process-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-login__process-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    counter-reset: process-step;
}

.page-login__process-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

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

.page-login__process-item::before {
    counter-increment: process-step;
    content: "0" counter(process-step);
    font-size: 2.5em;
    font-weight: bold;
    color: #FFD700; /* Gold step number */
    margin-right: 20px;
    flex-shrink: 0;
}

.page-login__process-step-title {
    font-size: 1.5em;
    color: #0A192F;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-login__process-step-description {
    color: #666666;
}

/* Security Section */
.page-login__security-section {
    padding: 60px 0;
    background-color: #0A192F; /* Dark blue background */
    color: #f0f0f0; /* Light text */
}

.page-login__security-section .page-login__section-title {
    color: #FFD700; /* Gold title on dark background */
}

.page-login__security-section .page-login__section-description {
    color: #cccccc;
}

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

.page-login__security-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__security-icon {
    width: 100%; /* Ensure image fills container */
    max-width: 400px; /* Constrain max width as per requirements */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: contain; /* Ensure image content is visible */
}

.page-login__security-feature-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-login__security-feature-description {
    font-size: 0.95em;
    color: #e0e0e0;
}

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

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

.page-login__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #0A192F;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

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

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

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or similar */
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #e0e0e0; /* Separator for opened answer */
}

.page-login__faq-answer p {
    margin: 0;
}

/* CTA Section */
.page-login__cta-section {
    padding: 60px 0;
    background-color: #FFD700; /* Gold background */
    color: #0A192F; /* Dark blue text */
    text-align: center;
}

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

.page-login__cta-section .page-login__section-description {
    color: #333333;
    margin-bottom: 30px;
}

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

@media (max-width: 768px) {
    .page-login {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    }

    .page-login__hero-section {
        padding: 60px 0;
    }

    .page-login__hero-content {
        padding: 20px;
    }

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

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

    .page-login__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__button {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

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

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

    .page-login__process-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .page-login__process-item::before {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-login__security-features {
        grid-template-columns: 1fr;
    }

    .page-login__security-item {
        padding: 20px;
    }

    .page-login__security-icon {
        width: 100%; /* Allow it to scale up to 100% of parent */
        max-width: 300px; /* Still respecting max-width if set higher for desktop */
        height: auto;
        min-width: 200px; /* Crucial: ensure it's not smaller than 200px */
        min-height: 200px; /* Crucial: ensure it's not smaller than 200px */
    }

    .page-login__info-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }

    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__button {
        font-size: 1em;
        padding: 12px 25px;
    }
    .page-login__process-item::before {
        font-size: 2em;
    }
    .page-login__process-step-title {
        font-size: 1.3em;
    }
}