/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a2e; /* Dark background as per body background info */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-login__hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none; /* Ensure no filter is applied */
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-login__hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    padding: 20px;
}

.page-login__main-heading {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Login/Register font color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__sub-heading {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #ffffff;
}

/* Login Form */
.page-login__form-container {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    margin: 0 auto;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439; /* Primary brand color border */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-login__form-input:focus {
    outline: none;
    border-color: #FFFF00; /* Login/Register font color for focus */
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
}

.page-login__form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.page-login__form-link {
    color: #017439; /* Primary brand color */
    text-decoration: none;
    font-size: 0.9em;
}

.page-login__form-link:hover {
    text-decoration: underline;
    color: #FFFF00; /* Login/Register font color for hover */
}

.page-login__submit-button {
    background-color: #C30808; /* Login button color */\    color: #FFFF00; /* Login/Register font color */
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.page-login__submit-button:hover {
    background-color: #a00606;
}

.page-login__register-cta {
    margin-top: 30px;
    text-align: center;
    color: #ffffff;
}

.page-login__register-text {
    margin-bottom: 10px;
}

.page-login__register-link {
    display: inline-block;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-login__register-link:hover {
    background-color: #005f2e;
}

/* General Section Styling */
.page-login__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Login/Register font color */
    text-align: center;
    margin-bottom: 30px;
}

.page-login__content-intro,
.page-login__content-outro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #FFFFFF; /* White background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__form-link {
    color: #017439; /* Primary brand color for titles/links on light bg */
}

.page-login__light-bg .page-login__content-intro,
.page-login__light-bg .page-login__content-outro,
.page-login__light-bg .page-login__list-item,
.page-login__light-bg .page-login__card-description,
.page-login__light-bg .page-login__faq-title,
.page-login__light-bg .page-login__faq-answer p {
    color: #333333;
}

.page-login__dark-section {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 60px 0;
}

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

.page-login__benefit-card,
.page-login__trouble-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-login__benefit-icon,
.page-login__trouble-icon {
    width: 100%;
    max-width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-login__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Login/Register font color */
    margin-bottom: 15px;
}

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

/* How-To-Login Section */
.page-login__login-steps {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-login__login-steps .page-login__list-item {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #017439;
}

.page-login__login-steps .page-login__step-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

.page-login__login-steps .page-login__step-description {
    color: #555555;
    font-size: 1em;
}

/* Security Section */
.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-login__security-list .page-login__list-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #FFFF00;
}

.page-login__security-list .page-login__list-heading {
    font-size: 1.6em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-login__security-list .page-login__list-description {
    color: #f0f0f0;
    font-size: 1em;
}

/* New User Section */
.page-login__new-user-content {
    text-align: center;
    padding: 40px 20px;
}

.page-login__register-button {
    display: inline-block;
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
}

.page-login__faq-item {
    background: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.page-login__faq-title {
    font-size: 1.3em;
    color: #333333;
    margin: 0;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
    font-size: 1em;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-heading {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        height: auto;
        min-height: 80vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__hero-content {
        padding: 15px;
    }
    .page-login__main-heading {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-login__sub-heading {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__form-container {
        padding: 30px;
    }
    .page-login__submit-button,
    .page-login__register-link,
    .page-login__register-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__content-intro,
    .page-login__content-outro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__benefits-grid,
    .page-login__troubleshooting-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__benefit-card,
    .page-login__trouble-card,
    .page-login__login-steps .page-login__list-item,
    .page-login__security-list .page-login__list-item,
    .page-login__faq-item {
        padding: 20px;
    }
    .page-login__card-title,
    .page-login__login-steps .page-login__step-title,
    .page-login__security-list .page-login__list-heading {
        font-size: 1.3em;
    }
    .page-login__card-description,
    .page-login__login-steps .page-login__step-description,
    .page-login__security-list .page-login__list-description {
        font-size: 0.9em;
    }

    /* Mobile image responsiveness */
    .page-login img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      filter: none; /* Ensure no filter is applied */
    }
    
    .page-login__hero-bg {
      max-width: 100% !important;
      width: 100% !important;
      height: 100% !important; /* Hero background needs to cover height */
    }

    /* Mobile container padding */
    .page-login__container,
    .page-login__hero-content,
    .page-login__form-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button specific mobile styles */
    .page-login__submit-button,
    .page-login__register-button,
    .page-login__register-link,
    .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;
    }

    /* FAQ answer padding */
    .page-login__faq-answer {
        padding: 0 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px !important;
    }
    .page-login__faq-question {
        padding: 15px;
    }
}

/* Ensure no filter is used on images */
.page-login img {
    filter: none;
}

/* Color contrast fixes if needed (applied by system) */
.page-login__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}