/* style/login.css */

/* Base styles for the login page content */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--secondary-color); /* Matches body background: #FFFFFF */
}

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

.page-login__section-title {
    font-size: 36px;
    color: #26A9E0; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
    overflow: hidden; /* Prevent image overflow */
}

.page-login__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-login__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    background-color: #ffffff; /* White background for text and form */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: -80px; /* Overlap with image slightly for visual effect */
}

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

.page-login__hero-description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 30px;
}

.page-login__login-form-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__form-group {
    text-align: left;
}

.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: 6px;
    font-size: 16px;
    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-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__checkbox-label {
    color: #555555;
}

.page-login__forgot-password-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
}

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

.page-login__login-button {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background-color: #EA7C07; /* Custom color for login button */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* Ensure button-like links are styled */
    text-align: center;
    box-sizing: border-box;
}

.page-login__login-button:hover {
    background-color: #d46f06;
    transform: translateY(-2px);
}

.page-login__register-prompt {
    margin-top: 20px;
    font-size: 16px;
    color: #555555;
}

.page-login__register-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
}

.page-login__register-link:hover {
    text-decoration: underline;
}

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

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

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

.page-login__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.page-login__benefit-text {
    font-size: 16px;
    color: #555555;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color as dark background */
    color: #ffffff; /* White text for dark background */
}

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-description {
    color: #ffffff;
}

.page-login__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.page-login__security-text {
    flex: 1;
}

.page-login__security-subtitle {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.page-login__security-list li {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 17px;
    color: #ffffff;
}

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

.page-login__security-note {
    font-size: 16px;
    font-style: italic;
    color: #f0f0f0;
}

.page-login__security-image {
    flex: 0 0 450px; /* Fixed width for image on desktop */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
}

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

.page-login__troubleshooting-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-login__troubleshooting-subtitle {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__troubleshooting-text {
    font-size: 16px;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-login__troubleshooting-link {
    display: inline-block;
    color: #EA7C07; /* Login button color for emphasis */
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
}

.page-login__troubleshooting-link:hover {
    text-decoration: underline;
}

.page-login__troubleshooting-contact-prompt {
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
    color: #333333;
}

.page-login__button-group {
    text-align: center;
    margin-top: 30px;
}

.page-login__contact-support-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.page-login__contact-support-button:hover {
    background-color: #1e87b8;
    transform: translateY(-2px);
}

/* Join Section */
.page-login__join-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color as dark background */
    color: #ffffff; /* White text for dark background */
}

.page-login__join-section .page-login__section-title,
.page-login__join-section .page-login__section-description {
    color: #ffffff;
}

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

.page-login__join-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__join-subtitle {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__join-text {
    font-size: 16px;
    color: #f0f0f0;
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #EA7C07; /* Custom color for CTA button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.page-login__cta-button:hover {
    background-color: #d46f06;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #f9f9f9;
    color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 2000px !important; /* Ensure it expands sufficiently */
    padding: 20px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-login__faq-item.active .page-login__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #26A9E0;
}

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

.page-login__faq-question:active {
    background: #eeeeee;
}

.page-login__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click events */
}

.page-login__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0; /* Primary brand color for toggle */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
    color: #EA7C07; /* Accent color when active */
    transform: rotate(45deg); /* Plus to X rotation */
}

/* Bottom CTA Register Section */
.page-login__cta-register-bottom {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

.page-login__cta-register-bottom .page-login__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__cta-title {
    font-size: 38px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__cta-description {
    font-size: 20px;
    color: #f0f0f0;
    max-width: 800px;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 36px;
    }
    .page-login__hero-description {
        font-size: 18px;
    }
    .page-login__security-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-login__security-image {
        flex: none;
        width: 100%;
        max-width: 600px; /* Constrain image width on smaller screens */
    }
    .page-login__security-image img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure proper offset on mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__hero-content {
        margin-top: -40px; /* Adjust overlap */
        padding: 20px;
    }
    .page-login__hero-title {
        font-size: 28px;
    }
    .page-login__hero-description {
        font-size: 16px;
    }
    .page-login__section-title {
        font-size: 28px;
    }
    .page-login__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-login__login-form-wrapper {
        padding: 20px;
    }
    .page-login__form-input {
        padding: 10px 12px;
        font-size: 15px;
    }
    .page-login__login-button,
    .page-login__contact-support-button,
    .page-login__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__button-group {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__troubleshooting-section,
    .page-login__join-section,
    .page-login__faq-section,
    .page-login__cta-register-bottom {
        padding: 40px 0;
    }
    .page-login__container {
        padding: 0 15px;
    }
    .page-login__security-list li {
        font-size: 15px;
        padding-left: 25px;
        background-size: 18px;
    }
    .page-login__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-login__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-login__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px !important;
    }
    .page-login__cta-title {
        font-size: 28px;
    }
    .page-login__cta-description {
        font-size: 16px;
    }

    /* All images responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-login__hero-image,
    .page-login__security-image,
    .page-login__benefits-grid,
    .page-login__troubleshooting-grid,
    .page-login__join-benefits,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Handled by container padding */
        padding-right: 0; /* Handled by container padding */
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 24px;
    }
    .page-login__section-title {
        font-size: 24px;
    }
    .page-login__login-form-wrapper {
        padding: 15px;
    }
    .page-login__form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .page-login__forgot-password-link {
        margin-left: 0;
    }
    .page-login__cta-title {
        font-size: 24px;
    }
}