/* style/login.css */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #ffffff; /* Explicitly set for clarity */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
    padding-bottom: 60px; /* Add some padding at the bottom for content */
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%; /* Ensure container takes full width on smaller screens */
    box-sizing: border-box;
}

.page-login__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-login__login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    margin: 40px auto 0;
    color: #333333;
    text-align: left;
    box-sizing: border-box;
}

.page-login__login-card-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 30px;
    text-align: center;
}

.page-login__form-group {
    margin-bottom: 20px;
}

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background: #EA7C07; /* Login button color */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Ensure text wraps */
    word-wrap: break-word; /* Ensure text wraps */
}

.page-login__btn-primary:hover {
    background: #d46b00;
}

.page-login__btn-secondary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background: #26A9E0;
    color: #ffffff;
    border: 1px solid #26A9E0;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Ensure text wraps */
    word-wrap: break-word; /* Ensure text wraps */
}

.page-login__btn-secondary:hover {
    background: #1e87bb;
    border-color: #1e87bb;
}

.page-login__forgot-password {
    display: block;
    text-align: center;
    color: #26A9E0;
    text-decoration: none;
    font-size: 0.95em;
    margin-top: 10px;
}

.page-login__forgot-password:hover {
    text-decoration: underline;
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.page-login__register-prompt p {
    margin-bottom: 15px;
    color: #555555;
}

.page-login__register-link {
    background: #26A9E0;
    color: #ffffff;
    border: none;
}

.page-login__register-link:hover {
    background: #1e87bb;
}

/* General Sections */
.page-login__section-title {
    font-size: 2.8em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
}

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

.page-login__benefit-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block; /* Ensure no extra space below image */
    margin-left: auto;
    margin-right: auto;
}

.page-login__card-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-login__card-link {
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__card-link:hover {
    color: #d46b00;
    text-decoration: underline;
}

/* Guide Section */
.page-login__guide-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
}

.page-login__guide-section .page-login__section-title {
    color: #ffffff;
}

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

.page-login__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-login__step-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-sizing: border-box;
}

.page-login__step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: #EA7C07;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-login__step-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-login__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__troubleshooting {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 40px;
    margin-top: 60px;
    text-align: left;
    box-sizing: border-box;
}

.page-login__troubleshooting-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.page-login__troubleshooting-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: center;
}

.page-login__troubleshooting-list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-login__troubleshooting-list li strong {
    color: #ffffff;
}

.page-login__troubleshooting .page-login__btn-secondary {
    max-width: 300px;
    margin: 0 auto;
    background: #EA7C07;
    border-color: #EA7C07;
}

.page-login__troubleshooting .page-login__btn-secondary:hover {
    background: #d46b00;
    border-color: #d46b00;
}

/* Promotions Section */
.page-login__promotions-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-login__promotion-item {
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    box-sizing: border-box;
}

.page-login__promotion-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

.page-login__cta-area .page-login__btn-primary {
    max-width: 300px;
    margin: 0 auto;
    background: #EA7C07;
}

.page-login__cta-area .page-login__btn-primary:hover {
    background: #d46b00;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #f0f5f8; /* Light blueish background */
    color: #333333;
}

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

.page-login__faq-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-login__faq-item:last-child .page-login__faq-question {
    border-bottom: none;
}

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

.page-login__faq-question-text {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    color: #EA7C07;
    font-weight: bold;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

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

/* Final CTA Section */
.page-login__cta-final-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
    text-align: center;
}

.page-login__cta-final-section .page-login__section-title {
    color: #ffffff;
}

.page-login__cta-final-section .page-login__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 40px;
}

.page-login__cta-final-section .page-login__btn-primary,
.page-login__cta-final-section .page-login__btn-secondary {
    width: auto; /* Override 100% width for these buttons */
    min-width: 200px;
    max-width: 300px; /* Limit max width for desktop */
}

.page-login__cta-final-section .page-login__btn-primary {
    background: #EA7C07;
    border-color: #EA7C07;
}

.page-login__cta-final-section .page-login__btn-primary:hover {
    background: #d46b00;
    border-color: #d46b00;
}

.page-login__cta-final-section .page-login__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
}

.page-login__cta-final-section .page-login__btn-secondary:hover {
    background: #f0f0f0;
    color: #1e87bb;
    border-color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2.2em;
    }
    .page-login__login-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 550px;
        padding-bottom: 40px;
    }
    .page-login__hero-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__login-card {
        padding: 25px;
        max-width: 90%;
        margin-top: 20px;
    }
    .page-login__login-card-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* General section padding for mobile */
    .page-login__container {
        padding: 0 15px;
    }

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

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__benefits-grid,
    .page-login__guide-steps,
    .page-login__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__benefit-card,
    .page-login__step-item,
    .page-login__promotion-item,
    .page-login__troubleshooting,
    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 20px; /* Adjust padding for mobile */
        padding-right: 20px; /* Adjust padding for mobile */
    }
    .page-login__troubleshooting .page-login__btn-secondary,
    .page-login__cta-area .page-login__btn-primary {
        max-width: 100%;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__cta-final-section .page-login__btn-primary,
    .page-login__cta-final-section .page-login__btn-secondary {
        max-width: 100%;
        width: 100%;
        min-width: unset;
    }

    /* FAQ specific mobile adjustments */
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 2em;
    }
    .page-login__login-card-title {
        font-size: 1.5em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.5em;
    }
}