/* style/login.css */

/* Base styling for the login page content */
.page-login {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Section padding */
.page-login__section-padding {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dark background sections for contrast */
.page-login__dark-background {
    background-color: #007bff; /* Primary color as background */
    color: #ffffff; /* Light text on dark background */
}

.page-login__section-title {
    font-size: 2.5em;
    color: #007bff; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-login__section-title--light {
    color: #ffffff; /* Light title for dark background */
}

/* Hero Section */
.page-login__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f8f9fa; /* Light background for hero */
    padding: 80px 20px;
    gap: 30px;
}

.page-login__main-title {
    font-size: 3.2em;
    color: #007bff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
}

.page-login__cta-button,
.page-login__secondary-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 10px;
    text-align: center;
    cursor: pointer;
}

.page-login__cta-button {
    background-color: #ffc107; /* Auxiliary color */
    color: #333333; /* Dark text for contrast */
    border: 2px solid #ffc107;
}

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

.page-login__cta-button--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

.page-login__secondary-button {
    background-color: transparent;
    color: #007bff; /* Primary color */
    border: 2px solid #007bff;
}

.page-login__secondary-button:hover {
    background-color: #0056b3;
    color: #ffffff;
    transform: translateY(-3px);
}

.page-login__hero-image {
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Info Section */
.page-login__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-login__text-block p {
    margin-bottom: 15px;
}

.page-login__cta-area {
    text-align: center;
    margin-top: 40px;
}

/* Process Section */
.page-login__process-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.page-login__process-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.page-login__process-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__process-list {
    flex: 2;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 600px;
}

.page-login__process-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-login__process-step-title {
    font-size: 1.5em;
    color: #ffc107; /* Auxiliary color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__process-item p {
    font-size: 1em;
    line-height: 1.6;
}

/* Security Section */
.page-login__security-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.page-login__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.page-login__security-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__security-list {
    flex: 2;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 600px;
}

.page-login__security-item {
    background-color: #ffffff;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-login__security-tip-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: bold;
}

/* FAQ Section */
.page-login__faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly lighter for contrast */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.page-login__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-login__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

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

.page-login__faq-answer p {
    padding-bottom: 20px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-login__main-title {
        font-size: 2.2em;
    }

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

    .page-login__hero-section {
        flex-direction: column;
        padding: 60px 15px;
    }

    .page-login__process-container,
    .page-login__security-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-login__process-list,
    .page-login__security-list {
        max-width: 100%;
    }
    
    .page-login__hero-image img,
    .page-login__process-image img,
    .page-login__security-image img {
        max-width: 100%;
        height: auto;
        /* Enforce minimum size for content images if they are not already large */
        min-width: 200px;
        min-height: 200px;
    }

    /* Ensure content images do not overflow on mobile */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
    }

    .page-login__section-padding {
        padding: 40px 15px;
    }

    .page-login__cta-button,
    .page-login__secondary-button {
        padding: 12px 25px;
        font-size: 1em;
        margin: 8px;
    }

    .page-login__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

/* Ensure content area does not cause horizontal scroll */
@media (max-width: 768px) {
    .page-login {
        overflow-x: hidden;
        max-width: 100%;
    }
    .page-login__hero-content,
    .page-login__info-section,
    .page-login__process-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__cta-section {
        box-sizing: border-box; /* Include padding in element's total width */
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}