/* style/login.css */
.page-login {
    color: #ffffff; /* Body background is dark #111, so use light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-login__dark-bg {
    background-color: #111111; /* Consistent with shared body background */
    color: #ffffff;
}

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

/* Hero Section */
.page-login__hero-section {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #017439; /* Use brand main color for hero */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-login__hero-section .page-login__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.page-login__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

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

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

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

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

.page-login__form-wrapper {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin-top: 30px;
}

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

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

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

.page-login__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__input::placeholder {
    color: #666666;
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.page-login__forgot-password {
    color: #FFFF00; /* Custom color for link */
    text-decoration: none;
    font-size: 0.95em;
}

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

.page-login__btn-login {
    background-color: #C30808; /* Custom login button color */
    color: #FFFF00; /* Custom login button text color */
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.page-login__btn-login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-login__register-text {
    margin-top: 25px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__register-link {
    color: #FFFF00; /* Custom color for link */
    text-decoration: none;
    font-weight: bold;
}

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

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
}

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

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

.page-login__benefit-card:hover {
    transform: translateY(-5px);
}

.page-login__benefit-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-login__card-text {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

/* Why Choose Section */
.page-login__why-choose-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

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

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

.page-login__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.page-login__feature-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-login__feature-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-login__why-choose-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 80px 0;
}

.page-login__troubleshooting-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.page-login__troubleshooting-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
}

.page-login__troubleshooting-item .page-login__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

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

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.page-login__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-login__btn-primary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2d;
    border-color: #005a2d;
    transform: translateY(-2px);
}

.page-login__troubleshooting-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* A slightly lighter dark background for contrast */
    color: #ffffff;
}

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

.page-login__faq-list {
    margin-top: 40px;
}

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px;
}

.page-login__faq-answer p {
    margin-bottom: 0;
    line-height: 1.7;
}

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

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
    color: #333333;
}

.page-login__btn-register-bottom {
    background-color: #C30808; /* Custom register button color */
    color: #FFFF00; /* Custom register button text color */
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin-top: 40px;
}

.page-login__btn-register-bottom:hover {
    background-color: #a00606;
    transform: translateY(-3px);
}

.page-login__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__hero-section .page-login__container {
        flex-direction: column;
        text-align: center;
    }
    .page-login__hero-content {
        text-align: center;
    }
    .page-login__form-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__subtitle {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 0.95em;
    }
    .page-login__form-wrapper {
        padding: 20px;
    }
    .page-login__btn-login, .page-login__btn-register-bottom,
    .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;
    }
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column;
        gap: 10px;
    }
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-section .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-login__faq-answer {
        padding: 0 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px;
    }
    .page-login__benefits-grid, .page-login__features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__btn-login, .page-login__btn-register-bottom {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-login__form-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__forgot-password {
        order: 2;
    }
    .page-login__btn-login {
        order: 1;
    }
}