/* style/login.css */

/* Base styles 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); /* Fixed header offset */
    background-color: #FFFFFF; /* Explicitly setting for clarity, though body is white */
}

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

/* Hero Section */
.page-login__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden; /* To contain image */
}

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

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
    padding: 40px;
    border-radius: 10px;
    color: #FFFFFF; /* Light text on dark overlay */
}

.page-login__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
}

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

.page-login__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 10px 15px; /* Added margin-bottom for mobile stacking */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for contrast */
}

.page-login__button--login:hover {
    background-color: #e0a53b;
}

.page-login__button--register {
    background-color: #000000; /* Main color for register button background */
    color: #FFFFFF; /* White text for register button */
    border: 1px solid #FCBC45; /* Accent border */
}

.page-login__button--register:hover {
    background-color: #333333;
    border-color: #FCBC45;
}


/* General Section Styling */
.page-login__login-info-section,
.page-login__process-section,
.page-login__security-section,
.page-login__faq-section,
.page-login__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-login__login-info-section,
.page-login__security-section {
    background-color: #f9f9f9; /* Light grey background for distinction */
}

.page-login__section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #000000; /* Main text color */
}

.page-login__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-login__content-image {
    width: 100%;
    max-width: 800px; /* Max width for content images */
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Login Process */
.page-login__process-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
}

.page-login__process-item {
    background-color: #FFFFFF;
    border: 1px solid #eee;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__process-step-title {
    font-size: 1.4em;
    color: #FCBC45; /* Accent color for step titles */
    margin-bottom: 10px;
}

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

/* Security Section */
.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
}

.page-login__security-item {
    background-color: #FFFFFF;
    border: 1px solid #eee;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__security-tip-title {
    font-size: 1.4em;
    color: #000000; /* Main text color */
    margin-bottom: 10px;
}

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

/* FAQ Section */
.page-login__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-login__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

.page-login__faq-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    color: #FCBC45; /* Accent color for toggle */
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: translateY(-50%) rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-login__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-login__faq-item[open] .page-login__faq-answer {
    max-height: 200px; /* Adjust as needed for content length */
    transition: max-height 0.3s ease-in;
}


/* Call to Action Section */
.page-login__cta-section {
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF; /* Light text on dark background */
    padding: 80px 20px;
}

.page-login__cta-section .page-login__section-title {
    color: #FCBC45; /* Accent color for CTA title */
}

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

.page-login__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Reusing button styles for CTA, adjust if needed */
.page-login__cta-button.page-login__button--login {
    background-color: #FCBC45;
    color: #000000;
}

.page-login__cta-button.page-login__button--login:hover {
    background-color: #e0a53b;
}

.page-login__cta-button.page-login__button--register {
    background-color: transparent; /* Transparent background */
    color: #FFFFFF;
    border: 2px solid #FCBC45;
}

.page-login__cta-button.page-login__button--register:hover {
    background-color: #FCBC45;
    color: #000000;
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-login__hero-title {
        font-size: 2.2em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__hero-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile content area images */
    .page-login__content-image,
    .page-login__hero-image {
        max-width: 100%;
        height: auto;
    }

    /* Ensure no horizontal scroll */
    .page-login {
        overflow-x: hidden;
    }

    .page-login__hero-title {
        font-size: 1.8em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__hero-button {
        padding: 12px 25px;
        font-size: 1em;
        margin: 0 5px 10px;
    }
    .page-login__hero-section {
        padding: 40px 15px;
    }
    .page-login__login-info-section,
    .page-login__process-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 0;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__section-description {
        font-size: 0.95em;
    }
    .page-login__process-item,
    .page-login__security-item,
    .page-login__faq-item {
        padding: 20px;
    }
    .page-login__process-step-title,
    .page-login__security-tip-title,
    .page-login__faq-question {
        font-size: 1.1em;
    }
    .page-login__faq-toggle {
        font-size: 1.2em;
        right: 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px;
    }
    .page-login__cta-button {
        padding: 12px 25px;
        font-size: 1.1em;
        margin: 0 5px 10px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-content {
        padding: 25px 15px;
    }
    .page-login__hero-button {
        display: block; /* Stack buttons vertically */
        margin: 0 auto 15px;
        width: calc(100% - 20px); /* Adjust width to fit padding */
        max-width: 250px;
    }
    .page-login__cta-button {
        display: block;
        margin: 0 auto 15px;
        width: calc(100% - 20px);
        max-width: 280px;
    }
}