/* style/login.css */

/* General page styling */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text on light body background (#f8f9fa) */
    line-height: 1.6;
    background-color: #f8f9fa; /* Ensure light background for general text contrast */
}

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

.page-login__hero-section {
    position: relative;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-login__hero-image-wrapper {
    width: 100%;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    filter: none; /* Ensure no CSS filter */
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.page-login__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
}

.page-login__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__submit-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary,
.page-login__submit-button {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
}

.page-login__btn-primary:hover,
.page-login__submit-button:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-login__btn-secondary:hover {
    background: rgba(42, 209, 111, 0.1);
    color: #13994A;
}

/* Login form section */
.page-login__login-form-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    color: #333333;
}

.page-login__form-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    margin: 0 auto;
    color: #F2FFF6; /* Text Main */
    border: 1px solid #2E7A4E; /* Border */
}

.page-login__form-title {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #F2FFF6; /* Text Main */
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #A7D9B8; /* Text Secondary */
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 6px;
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #A7D9B8; /* Text Secondary */
    opacity: 0.7;
}

.page-login__form-input:focus {
    outline: none;
    border-color: #57E38D; /* Glow */
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

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

.page-login__remember-me {
    display: flex;
    align-items: center;
    color: #A7D9B8; /* Text Secondary */
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #2AD16F;
}

.page-login__forgot-password,
.page-login__register-link {
    color: #57E38D; /* Glow */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
    color: #F2C14E; /* Gold */
    text-decoration: underline;
}

.page-login__register-text {
    text-align: center;
    margin-top: 25px;
    color: #A7D9B8; /* Text Secondary */
}

.page-login__form-illustration {
    display: none;
}

.page-login__form-illustration img {
    filter: none; /* Ensure no CSS filter */
}

/* Benefits section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    text-align: center;
}

.page-login__section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 50px;
    color: #F2FFF6; /* Text Main */
}

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

.page-login__benefit-item {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #2E7A4E; /* Border */
}

.page-login__benefit-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: none; /* Ensure no CSS filter */
}

.page-login__benefit-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F2FFF6; /* Text Main */
}

.page-login__benefit-description {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
}

/* FAQ section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    color: #333333;
}

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

.page-login__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    color: #333333;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    list-style: none;
}

.page-login__faq-question::-webkit-details-marker {
    display: none;
}

.page-login__faq-qtext {
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    line-height: 1;
    margin-left: 15px;
    color: #11A84E;
}

.page-login__faq-answer {
    padding: 15px 25px;
    font-size: 0.95em;
    color: #555555;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.page-login__faq-item[open] .page-login__faq-question {
    background-color: #e8e8e8;
    border-bottom: none;
}

/* CTA Register Section */
.page-login__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
}

.page-login__cta-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
}

.page-login__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
}

/* Responsive styles */
@media (min-width: 769px) {
    .page-login__login-form-section .page-login__container {
        display: flex;
        align-items: center;
        gap: 40px;
        justify-content: center;
    }

    .page-login__form-card {
        flex-shrink: 0;
    }

    .page-login__form-illustration {
        display: block;
        flex-grow: 1;
        max-width: 500px;
    }
    .page-login__form-illustration img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .page-login__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-login__section-title,
    .page-login__form-title,
    .page-login__cta-title {
        font-size: 1.8em;
    }

    .page-login__hero-section {
        padding: 20px 0;
        padding-top: 10px !important;
    }
    
    .page-login__hero-content {
        padding: 15px;
    }

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

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__submit-button {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .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__login-form-section,
    .page-login__benefits-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 0;
    }

    .page-login__form-card {
        padding: 30px 20px;
        margin: 0 15px;
    }

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

    .page-login__benefit-item {
        padding: 25px;
    }

    .page-login__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-login__faq-answer {
        padding: 10px 20px;
    }

    .page-login img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      filter: none !important;
      min-width: 200px !important;
      min-height: 200px !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-login__video-section { /* Added for general video responsiveness, though no video on this page */
        padding-top: 10px !important;
    }
    
    .page-login video,
    .page-login__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

    .page-login__hero-image {
        min-width: 100% !important;
        min-height: 200px !important; /* Ensure hero image meets minimum size */
    }
    .page-login__form-illustration img,
    .page-login__benefit-icon {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

/* Desktop specific for form illustration, ensuring width:100% is present */
@media (min-width: 769px) {
    .page-login__form-illustration img {
        width: 100%; /* Ensure width 100% for desktop too */
        height: auto;
    }
}