/* style/login.css */
.page-login {
    color: #333333; /* Dark text for default light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

.page-login__hero-section {
    background-color: #f8f8f8; /* Light background for hero section */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-login__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-login__hero-title {
    font-size: 3.2em;
    color: #8B0000; /* Auxiliary color for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.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-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.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.2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.page-login__button--primary {
    background-color: #FFD700; /* Main brand color */
    color: #8B0000; /* Auxiliary color for text */
}

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

.page-login__button--secondary {
    background-color: #8B0000; /* Auxiliary brand color */
    color: #FFD700; /* Main brand color for text */
}

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

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

.page-login__section-title {
    font-size: 2.5em;
    color: #8B0000;
    text-align: center;
    margin-bottom: 25px;
    margin-top: 60px;
    font-weight: bold;
}

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

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

.page-login__explanation-section,
.page-login__process-section,
.page-login__security-section,
.page-login__troubleshooting-section,
.page-login__faq-section,
.page-login__cta-section {
    padding: 60px 0;
    background-color: #ffffff; /* Default light background */
}

.page-login__explanation-section,
.page-login__security-section,
.page-login__troubleshooting-section,
.page-login__faq-section {
    border-bottom: 1px solid #eee;
}

.page-login__explanation-image,
.page-login__process-image,
.page-login__security-image,
.page-login__troubleshooting-image,
.page-login__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px 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: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-login__process-item {
    background-color: #fff9e6; /* Light golden background */
    border: 1px solid #FFD700;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

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

.page-login__process-item p {
    color: #444444;
    font-size: 0.95em;
}

.page-login__process-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

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

.page-login__security-item,
.page-login__troubleshooting-item {
    background-color: #fff;
    border: 1px solid #eee;
    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,
.page-login__troubleshooting-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__security-tip-title,
.page-login__troubleshooting-tip-title {
    font-size: 1.3em;
    color: #8B0000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__security-item p,
.page-login__troubleshooting-item p {
    color: #444444;
    font-size: 0.9em;
}

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

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

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

.page-login__faq-question:hover {
    background-color: #fff0b3; /* Light golden hover */
}

.page-login__faq-question-text {
    flex-grow: 1;
    color: #8B0000; /* Auxiliary color for questions */
}

.page-login__faq-toggle-icon {
    font-size: 1.2em;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.page-login__faq-question[aria-expanded="true"] .page-login__faq-toggle-icon {
    transform: rotate(180deg);
}

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

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

.page-login__faq-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-login__cta-section {
    background-color: #8B0000; /* Auxiliary color background */
    color: #FFD700; /* Main color for text */
    text-align: center;
    padding: 80px 20px;
}

.page-login__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700;
}

.page-login__cta-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #fff;
}

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

.page-login__cta-buttons .page-login__button--primary {
    background-color: #FFD700;
    color: #8B0000;
}

.page-login__cta-buttons .page-login__button--primary:hover {
    background-color: #e6c200;
}

.page-login__cta-buttons .page-login__button--secondary {
    background-color: #fff;
    color: #8B0000;
}

.page-login__cta-buttons .page-login__button--secondary:hover {
    background-color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2.2em;
    }
    .page-login__cta-title {
        font-size: 2.4em;
    }
    .page-login__process-list,
    .page-login__security-list,
    .page-login__troubleshooting-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 60px 15px;
    }
    .page-login__hero-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__button {
        width: 100%;
        max-width: 300px;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-top: 40px;
    }
    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__explanation-section,
    .page-login__process-section,
    .page-login__security-section,
    .page-login__troubleshooting-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 0;
    }
    .page-login__container {
        padding: 0 15px;
    }
    .page-login__process-list,
    .page-login__security-list,
    .page-login__troubleshooting-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__faq-question {
        font-size: 1em;
        padding: 18px 20px;
    }
    .page-login__faq-answer p {
        padding: 10px 0;
    }
    .page-login__cta-title {
        font-size: 2em;
    }
    .page-login__cta-description {
        font-size: 1.1em;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile image constraint */
    .page-login img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure images within .page-login are not smaller than 200px in content area */
.page-login__explanation-image,
.page-login__process-image,
.page-login__security-image,
.page-login__troubleshooting-image,
.page-login__faq-image,
.page-login__hero-image {
    min-width: 200px;
    min-height: 200px;
}

@media (max-width: 768px) {
    .page-login__explanation-image,
    .page-login__process-image,
    .page-login__security-image,
    .page-login__troubleshooting-image,
    .page-login__faq-image,
    .page-login__hero-image {
        max-width: 100%;
        height: auto;
        min-width: unset; /* Allow flexibility on mobile, but still respect content size */
        min-height: unset; /* Allow flexibility on mobile, but still respect content size */
    }
}