/* style/login.css */
/* Reset & Base Styles */
.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 */
}

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

/* Sections */
.page-login__hero-section {
    position: relative;
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    overflow: hidden;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-login__hero-background-image {
    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.7);
    z-index: -1;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.page-login__main-heading {
    font-size: 3.2em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__intro-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.page-login__card-title {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: #ffff00; /* Custom color for login/register font */
    font-weight: bold;
}

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

.page-login__form-input::placeholder {
    color: #cccccc;
}

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

.page-login__forgot-password-link {
    color: #ffff00; /* Custom color for login/register font */
    text-decoration: none;
}

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

.page-login__remember-me {
    color: #ffffff;
}

.page-login__remember-me input {
    margin-right: 5px;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-login__btn-primary {
    background-color: #c30808; /* Custom color for login */
    color: #ffff00; /* Custom color for login font */
    margin-bottom: 15px;
}

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

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

.page-login__btn-secondary:hover {
    background-color: #c30808;
    color: #ffffff;
}

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

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

.page-login__benefits-section,
.page-login__faq-section {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-login__security-section,
.page-login__video-section,
.page-login__cta-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff; /* Light text for dark background */
    padding: 60px 0;
}

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: inherit;
}

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

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

.page-login__benefit-item {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333; /* Dark text for light card */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__benefit-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

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

.page-login__benefit-text {
    font-size: 1em;
    color: #555555;
    text-align: left;
}

/* Security Features */
.page-login__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-login__feature-item {
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-login__feature-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-login__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-login__cta-buttons .page-login__btn-secondary {
    width: auto;
    min-width: 200px;
    max-width: 300px;
}

/* Video Section */
.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-login__video-wrapper a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    display: block;
}

.page-login__video-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__faq-item summary {
    list-style: none;
}

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

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

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

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

.page-login__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #017439;
}

.page-login__faq-item[open] .page-login__faq-question {
    border-bottom-color: transparent;
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #fdfdfd;
}

/* CTA Section */
.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
    color: #ffffff;
}

.page-login__cta-content {
    text-align: center;
}

.page-login__cta-buttons .page-login__btn-primary,
.page-login__cta-buttons .page-login__btn-secondary {
    width: auto;
    min-width: 200px;
    max-width: 280px;
}


/* 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 {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 600px;
    }

    .page-login__main-heading {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-login__intro-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__login-card {
        padding: 25px;
    }

    .page-login__card-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-login__form-input {
        padding: 10px 12px;
    }

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

    .page-login__benefits-grid,
    .page-login__security-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-login__container {
        padding: 0 15px; /* Add padding for mobile content */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size is maintained */
        min-height: 200px !important; /* Ensure min size is maintained */
    }
    
    .page-login__benefit-image,
    .page-login__feature-icon {
        max-width: 100% !important;
        width: auto !important; /* Allow auto width to scale with max-width */
        height: auto !important;
    }

    /* Video responsiveness */
    .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__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__cta-buttons .page-login__btn-primary,
    .page-login__cta-buttons .page-login__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
    }

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

    .page-login__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-login__main-heading {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__login-card {
        padding: 20px;
    }
    .page-login__card-title {
        font-size: 1.5em;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Color Contrast Fixes (if needed, based on dynamic analysis) */
.page-login__dark-bg {
    color: #ffffff;
}

.page-login__light-bg {
    color: #333333;
    background: #ffffff;
}

/* Specific overrides for text color on input labels, using custom color */
.page-login__form-label {
    color: #ffff00;
}