:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --border-color: #e0e0e0;
    --header-offset: 120px; /* Default value, will be overridden by shared.css if present */
}

/* Base styles for the page-login scope */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-light); /* Default body background is white */
}

/* Header offset for the main content */
.page-login__hero-section {
    padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-login__hero-section {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* For potential background images/effects */
}

.page-login__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-card {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
}

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

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

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

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

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.page-login__checkbox-container {
    display: block;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    user-select: none;
}

.page-login__checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.page-login__checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
}

.page-login__checkbox-container:hover input ~ .page-login__checkmark {
    background-color: #ccc;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark {
    background-color: var(--primary-color);
}

.page-login__checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark:after {
    display: block;
}

.page-login__forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-login__btn-submit {
    background-color: var(--login-button-color); /* Custom color for login button */
    color: var(--text-light);
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-login__btn-submit:hover {
    background-color: #c96706; /* Darker shade for hover */
}

.page-login__register-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95em;
}

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

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

/* Features Section */
.page-login__features-section {
    padding: 80px 0;
    background: var(--background-light);
    text-align: center;
}

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

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

.page-login__feature-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-login__feature-icon {
    width: 100%; /* Occupy card width */
    max-width: 400px; /* Example max-width for display */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

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

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

/* CTA Section */
.page-login__cta-section {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

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

.page-login__btn-cta {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block; /* For proper padding and width */
    box-sizing: border-box;
}

.page-login__btn-cta:hover {
    background-color: #f0f0f0;
    color: #1a7fb3;
}

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

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

.page-login__faq-item {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-login__faq-title {
    font-size: 1.15em;
    color: var(--text-dark);
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 15px;
    line-height: 1;
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

/* Image specific styles - ensure no filter */
.page-login img {
    border: none; /* No default border */
    /* No filter properties allowed */
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__description {
        font-size: 1.1em;
    }
    .page-login__card-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 60px 0;
    }
    .page-login__main-title {
        font-size: 2em;
        padding: 0 15px;
    }
    .page-login__description {
        font-size: 1em;
        padding: 0 15px;
        margin-bottom: 30px;
    }
    .page-login__login-card {
        padding: 30px 20px;
        max-width: 90%;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-login__features-section,
    .page-login__cta-section,
    .page-login__faq-section {
        padding: 60px 0;
    }
    .page-login__features-grid {
        grid-template-columns: 1fr;
    }
    .page-login__feature-item {
        padding: 25px;
    }
    .page-login__feature-icon {
        max-width: 300px; /* Adjust for mobile */
    }
    .page-login__btn-submit,
    .page-login__btn-cta,
    .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-wrap: wrap !important;
        gap: 10px;
    }
    .page-login__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* Images and containers for mobile */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific override for hero section padding to ensure header offset */
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 0 !important; /* Resetting container's padding for full width hero */
        padding-right: 0 !important;
    }
    .page-login__hero-section .page-login__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Color contrast fixes */
.page-login__dark-bg {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-login__light-bg {
    background: var(--background-light);
    color: var(--text-dark);
}

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

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