/* style/login.css */

/* Base Styles for Login Page */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared, fallback to white */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-login__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-login__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-login__hero-content {
    max-width: 600px;
    z-index: 1;
    text-align: left;
    flex: 1;
    padding-right: 40px;
}

.page-login__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__hero-image {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    display: block;
}

.page-login__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-login__login-form-wrapper {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    background-color: #f8f8f8;
    color: #333333;
}

.page-login__form-input::placeholder {
    color: #999;
}

.page-login__form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 20px;
}

.page-login__btn-login {
    background-color: #EA7C07; /* Login specific color */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-login__btn-login:hover {
    background-color: #d16b06;
}

.page-login__btn-register {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    word-wrap: break-word;
    box-sizing: border-box;
}

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

.page-login__forgot-password {
    text-align: center;
    margin-top: 15px;
}

.page-login__link-text {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__link-text:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 20px;
    text-align: center;
}

.page-login__section-title {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: #000000;
}

.page-login__intro-text {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555555;
}

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

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

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

.page-login__benefit-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__card-description {
    font-size: 1em;
    color: #666666;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 60px 20px;
    text-align: center;
}

.page-login__troubleshooting-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    text-align: left;
}

.page-login__troubleshooting-text {
    flex: 2;
    color: #f0f0f0;
}

.page-login__troubleshooting-text p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-login__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-login__troubleshooting-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__troubleshooting-image {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    display: block;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-login__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-login__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    list-style: none;
    outline: none;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-login__faq-qtext {
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    color: #EA7C07; /* Login button color for active state */
}

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

/* CTA Section */
.page-login__cta-section {
    padding: 60px 20px;
    text-align: center;
}

.page-login__cta-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-login__cta-content {
    flex: 1;
    text-align: left;
}

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

.page-login__cta-content .page-login__intro-text {
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-login__cta-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__cta-image {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    display: block;
}

.page-login__btn-primary {
    background-color: #EA7C07;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-login__hero-content {
        padding-right: 20px;
    }

    .page-login__hero-section .page-login__container,
    .page-login__troubleshooting-content,
    .page-login__cta-grid {
        flex-direction: column;
        text-align: center;
    }

    .page-login__hero-content,
    .page-login__troubleshooting-text,
    .page-login__cta-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .page-login__main-title {
        font-size: 2.2em;
    }

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

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

    .page-login__sub-title {
        font-size: 1.5em;
    }

    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__troubleshooting-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 15px;
    }

    .page-login__container,
    .page-login__login-form-wrapper,
    .page-login__benefits-grid,
    .page-login__faq-list,
    .page-login__troubleshooting-content,
    .page-login__cta-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Images responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Buttons responsive */
    .page-login__btn-login,
    .page-login__btn-register,
    .page-login__btn-primary,
    .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;
    }

    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }

    /* FAQ toggle adjustments */
    .page-login__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.5em;
    }

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

    .page-login__description,
    .page-login__intro-text,
    .page-login__card-description,
    .page-login__faq-answer {
        font-size: 0.95em;
    }
}