/* 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 background */
    background-color: #ffffff; /* Default body background */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-login__description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__description--white {
    color: #f0f0f0;
}

/* Color Contrast Utility Classes */
.page-login__dark-section {
    background-color: #017439; /* Brand main color */
    color: #ffffff;
    padding: 80px 0;
}

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 80px 0;
}

/* Buttons */
.page-login__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom login/register button color */
    color: #FFFF00; /* Custom login/register font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
}

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

.page-login__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid #017439;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
}

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #005a2b;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-login__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7; /* Slightly dim background for readability */
}

.page-login__container--hero {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.page-login__hero-content {
    text-align: center;
    max-width: 600px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Login Form */
.page-login__login-form-wrapper {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333333; /* Ensure form text is dark on white background */
}

.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: #333333;
}

.page-login__input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
}

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

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

.page-login__checkbox-label {
    display: flex;
    align-items: center;
    color: #333333;
}

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__forgot-password {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    text-decoration: underline;
    color: #005a2b;
}

.page-login__login-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.page-login__register-text {
    text-align: center;
    margin-top: 20px;
    color: #333333;
}

.page-login__register-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    text-decoration: underline;
    color: #005a2b;
}

/* Advantages Section */
.page-login__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

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

.page-login__advantage-icon {
    width: 100%; /* Ensure images are responsive within cards */
    height: auto;
    max-height: 200px; /* Limit height for uniform appearance */
    object-fit: contain; /* Adjust as needed */
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-login__advantage-description {
    color: #555555;
}

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

/* Security Section */
.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-login__security-item {
    background-color: #005a2b; /* Darker green for list items */
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-login__security-subtitle {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-login__security-item p {
    color: #f0f0f0;
    margin-bottom: 0;
}

.page-login__security-link {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-login__security-link:hover {
    color: #fff;
}

/* After Login Guide Section */
.page-login__guide-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-login__guide-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-login__guide-subtitle {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-login__guide-item p {
    color: #555555;
    margin-bottom: 0;
}

.page-login__guide-link {
    color: #017439;
    text-decoration: underline;
}

.page-login__guide-link:hover {
    color: #005a2b;
}

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

.page-login__faq-item {
    background-color: #005a2b; /* Slightly darker green for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #017439; /* Brand main color for question header */
    transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding for collapsed state */
    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; /* Sufficiently large to show content */
    padding: 20px !important; /* Active padding for expanded state */
}

.page-login__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Spacing for paragraphs within answer */
}

/* Contact CTA Section */
.page-login__contact-cta {
    text-align: center;
}

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

    .page-login__container {
        padding: 0 15px;
    }

    .page-login__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

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

    .page-login__hero-content {
        padding: 20px;
    }

    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 500px;
    }

    .page-login__advantages-grid {
        grid-template-columns: 1fr;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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-wrap: wrap !important;
      gap: 10px;
    }
    
    /* Responsive image handling for all images within the main content */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}