/* style/login.css */

/* Variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --login-button-bg: #C30808;
    --login-button-text: #FFFF00;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --form-border-color: #e0e0e0;
}

/* General Page Styles */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for the page content, assuming shared body is dark */
    background-color: var(--background-color, #121212); /* Inherit from shared if available, fallback to dark */
}

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

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-on-dark);
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-on-dark);
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 80px 0; /* Adjust padding as needed */
    padding-top: var(--header-offset, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: var(--primary-color);
    color: var(--text-on-dark);
    text-align: center;
    overflow: hidden;
}

.page-login__hero-section .page-login__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

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

.page-login__main-heading {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-on-dark);
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-on-dark);
}

.page-login__hero-cta {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--login-button-bg);
    color: var(--login-button-text);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-login__hero-cta:hover {
    background-color: darken(var(--login-button-bg), 10%); /* Example for hover */
}

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

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

/* Form Section */
.page-login__form-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-login__form-section .page-login__container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-login__form-card {
    flex: 2;
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-on-light);
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-on-light);
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-on-light);
}

.page-login__form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--form-border-color);
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    color: var(--text-on-light);
    background-color: var(--secondary-color);
}

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

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

.page-login__login-button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__login-button:hover {
    opacity: 0.9;
}

.page-login__forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95em;
}

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

.page-login__no-account {
    text-align: center;
    margin-top: 20px;
    color: var(--text-on-light);
}

.page-login__register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__form-sidebar {
    flex: 1;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-on-light);
}

.page-login__sidebar-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--text-on-light);
    text-align: center;
}

.page-login__benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-login__benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.4;
    color: var(--text-on-light);
}

.page-login__benefit-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.page-login__sidebar-cta {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__sidebar-cta:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-description {
    color: var(--text-on-dark);
}

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

.page-login__feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    color: var(--text-on-dark);
}

.page-login__feature-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-login__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-on-dark);
}

.page-login__feature-text {
    font-size: 1em;
    color: var(--text-on-dark);
}

.page-login__cta-text {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-on-dark);
}

/* CTA Download Section */
.page-login__cta-download-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-login__cta-download-section .page-login__section-title,
.page-login__cta-download-section .page-login__section-description {
    color: var(--text-on-light);
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    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, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border: 2px solid var(--primary-color);
}

.page-login__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-login__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-login__app-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-login__faq-section .page-login__section-title {
    color: var(--text-on-light);
}

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

.page-login__faq-item {
    background-color: #f9f9f9;
    border: 1px solid var(--form-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-on-light);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: var(--text-on-light);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-on-light);
}

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

.page-login__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: var(--text-on-light);
}

/* Contact CTA Section */
.page-login__contact-cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    text-align: center;
}

.page-login__contact-cta-section .page-login__section-title,
.page-login__contact-cta-section .page-login__section-description {
    color: var(--text-on-dark);
}

.page-login__contact-cta-section .page-login__btn-primary {
    margin-top: 40px;
    background-color: var(--login-button-bg);
    color: var(--login-button-text);
    border-color: var(--login-button-bg);
}

.page-login__contact-cta-section .page-login__btn-primary:hover {
    background-color: darken(var(--login-button-bg), 10%);
    border-color: darken(var(--login-button-bg), 10%);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-heading {
        font-size: 3em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__form-section .page-login__container {
        flex-direction: column;
        align-items: center;
    }
    .page-login__form-card, .page-login__form-sidebar {
        flex: none;
        width: 100%;
        max-width: 600px;
    }
    .page-login__security-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__hero-section .page-login__container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .page-login__hero-content {
        text-align: center;
    }
    .page-login__main-heading {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-login__form-card, .page-login__form-sidebar, .page-login__faq-item {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__login-button,
    .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__download-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__form-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__forgot-password {
        margin-top: 10px;
    }

    /* Images responsive */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-image-wrapper,
    .page-login__security-features,
    .page-login__download-buttons,
    .page-login__app-image,
    .page-login__faq-list,
    .page-login__contact-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__benefit-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    .page-login__faq-question,
    .page-login__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 15px;
    }
}