/* style/login.css */
.page-login {
    color: #333333; /* Dark text for default light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

.page-login__hero-section {
    background-color: #f8f8f8;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid #FFD700;
}

.page-login__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-login__hero-title {
    font-size: 3em;
    color: #8B0000; /* Deep red for prominent title */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-login__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__hero-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-login__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.page-login__button--primary {
    background-color: #FFD700; /* Gold primary button */
    color: #8B0000; /* Deep red text for contrast */
    border: 2px solid #FFD700;
}

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

.page-login__button--secondary {
    background-color: #8B0000; /* Deep red secondary button */
    color: #FFD700; /* Gold text for contrast */
    border: 2px solid #8B0000;
}

.page-login__button--secondary:hover {
    background-color: #6a0000;
    color: #e6c200;
    transform: translateY(-3px);
}

.page-login__button--text {
    background: none;
    border: none;
    color: #8B0000;
    padding: 10px 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-login__button--text:hover {
    color: #FFD700;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-login__explanation-section,
.page-login__process-section,
.page-login__security-section,
.page-login__faq-section,
.page-login__promotion-section {
    padding: 60px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.page-login__explanation-section {
    background-color: #fefefe;
}

.page-login__process-section {
    background-color: #f9f9f9;
}

.page-login__security-section {
    background-color: #fefefe;
}

.page-login__faq-section {
    background-color: #f9f9f9;
}

.page-login__promotion-section {
    background-color: #fff8e1; /* Lighter gold background */
    text-align: center;
    border-bottom: none;
}

.page-login__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Deep red for section titles */
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    color: #666666;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-login__process-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-login__process-item {
    background-color: #ffffff;
    border: 1px solid #FFD700;
    border-radius: 10px;
    margin-bottom: 25px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__process-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.page-login__process-step-title {
    font-size: 1.5em;
    color: #8B0000;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-login__cta-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-login__security-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.page-login__security-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-login__security-tip-title {
    font-size: 1.3em;
    color: #FFD700; /* Gold for security tips */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__security-text {
    color: #555555;
    font-size: 0.95em;
}

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

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

.page-login__faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.1em;
    color: #8B0000; /* Deep red for FAQ questions */
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    user-select: none; /* Prevent text selection on click */
}

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

.page-login__faq-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    color: #FFD700;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: '-';
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #444444;
    line-height: 1.8;
}

.page-login__faq-item[open] .page-login__faq-answer {
    animation: fadein 0.3s ease-in-out;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .page-login__hero-title {
        font-size: 2.2em;
    }

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

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

    .page-login__button {
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-login__section-description {
        font-size: 0.95em;
    }

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

    .page-login__process-step-title,
    .page-login__security-tip-title {
        font-size: 1.2em;
    }

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

    .page-login__faq-toggle {
        right: 20px;
    }

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

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

    /* Specific override for hero image if needed */
    .page-login__hero-image {
        max-width: 100%;
        height: auto;
    }

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

@media (max-width: 480px) {
    .page-login__hero-section,
    .page-login__explanation-section,
    .page-login__process-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__promotion-section {
        padding: 40px 15px;
    }

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

    .page-login__button {
        font-size: 0.9em;
        padding: 10px 15px;
    }

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