/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-login__hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

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

.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.page-login__main-title {
    font-size: 3.5em;
    color: #FFFF00; /* Custom color for login/register font */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-login__intro-text {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-login__form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__form-title {
    font-size: 2em;
    color: #FFFF00; /* Custom color for login/register font */
    margin-bottom: 30px;
}

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

.page-login__input-group {
    text-align: left;
}

.page-login__label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-weight: bold;
}

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

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

.page-login__input:focus {
    outline: none;
    border-color: #01a04a;
    box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.5);
}

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

.page-login__checkbox-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-login__checkbox {
    width: 16px;
    height: 16px;
    accent-color: #017439;
}

.page-login__checkbox-label {
    color: #f0f0f0;
}

.page-login__forgot-password {
    color: #017439;
    text-decoration: none;
}

.page-login__forgot-password:hover {
    text-decoration: underline;
    color: #01a04a;
}

.page-login__btn {
    display: block;
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.page-login__btn--login {
    background-color: #C30808; /* Custom color for login button */
    color: #FFFF00; /* Custom color for login font */
    margin-top: 20px;
}

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

.page-login__register-text {
    margin-top: 25px;
    color: #f0f0f0;
    font-size: 1em;
}

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

.page-login__register-link:hover {
    text-decoration: underline;
    color: #01a04a;
}

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Custom color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-login__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark section */
}

.page-login__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

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

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

.page-login__benefit-icon {
    width: 200px; /* Min size 200x200 */
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Custom color for card titles */
    margin-bottom: 15px;
}

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

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

.page-login__btn--primary {
    background-color: #C30808; /* Custom color for primary button */
    color: #FFFF00; /* Custom color for font */
    border: 2px solid transparent;
}

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

.page-login__btn--secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom color for font */
    border: 2px solid #FFFF00; /* Custom color for border */
}

.page-login__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFFF00;
}

/* Video Section */
.page-login__video-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
}

.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* Constrain max width */
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves as a block element for max-width */
}

.page-login__video-caption {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #cccccc;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-login__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-login__faq-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    color: #FFFF00; /* Custom color for FAQ questions */
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

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

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

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

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

.page-login__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Contact CTA Section */
.page-login__contact-cta {
    padding: 80px 0;
    text-align: center;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
}

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

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset is applied */
        padding-bottom: 40px;
    }
    .page-login__main-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__form-wrapper {
        padding: 30px 20px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-login__form-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-login__remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-login__benefits-section,
    .page-login__video-section,
    .page-login__faq-section,
    .page-login__contact-cta {
        padding: 60px 0;
    }
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn {
        width: 100% !important;
        max-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__video-wrapper {
        padding-bottom: 56.25%; /* Keep 16:9 aspect ratio */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }
    .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__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px;
    }

    /* Images responsiveness */
    .page-login img {
      max-width: 100% !important;
      height: auto !important;
      display: block !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;
    }
}

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