/* style/login.css */

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

/* Header offset for fixed header */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    overflow: hidden;
    box-sizing: border-box;
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* No filter allowed here */
}

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

.page-login__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-login__main-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold for prominence */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-login__intro-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-card {
    background: rgba(0, 0, 0, 0.85); /* Slightly transparent dark background */
    border: 1px solid #B80F0A;
    border-radius: 10px;
    padding: 40px;
    max-width: 450px;
    margin: 30px auto 0;
    box-shadow: 0 0 20px rgba(184, 15, 10, 0.5);
    color: #ffffff;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #B80F0A;
    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: #aaa;
}

.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;
}

.page-login__checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #B80F0A; /* Brand color for checkbox */
}

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

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

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

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #B80F0A;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrapping for buttons */
    word-wrap: break-word; /* Allow text wrapping for buttons */
}

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

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

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

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

/* General section styling */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-login__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
}

.page-login__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #B80F0A;
    border-radius: 2px;
}

.page-login__benefits-section {
    background-color: rgba(255, 255, 255, 0.05); /* Light transparent background */
    color: #ffffff;
    padding: 80px 0;
}

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

.page-login__benefit-item.page-login__card {
    background: rgba(0, 0, 0, 0.7); /* Darker transparent background for cards */
    border: 1px solid rgba(184, 15, 10, 0.5);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item.page-login__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(184, 15, 10, 0.7);
}

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

.page-login__security-section {
    background-color: #111; /* Explicit dark background */
    color: #ffffff;
    padding: 80px 0;
}

.page-login__security-content,
.page-login__mobile-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-login__security-text,
.page-login__mobile-text {
    flex: 1;
    font-size: 1.1em;
}

.page-login__security-text p,
.page-login__mobile-text p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-login__security-image-wrapper,
.page-login__mobile-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px; /* Ensure minimum size for images */
}

.page-login__security-image,
.page-login__mobile-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    /* No filter allowed here */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrapping for buttons */
    word-wrap: break-word; /* Allow text wrapping for buttons */
}

.page-login__btn-secondary:hover {
    background-color: #FFD700;
    color: #111;
    transform: translateY(-2px);
}

.page-login__mobile-access-section {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 80px 0;
}

.page-login__mobile-content {
    flex-direction: row-reverse; /* Image on right, text on left */
}

.page-login__faq-section {
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
    color: #ffffff;
    padding: 80px 0;
}

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

.page-login__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(184, 15, 10, 0.5);
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
}

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

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

.page-login__faq-heading {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Adjust to fit parent font-size */
}

.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);
}

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

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

.page-login__faq-answer p {
    margin: 0;
}

.page-login__cta-section {
    background-color: #111; /* Explicit dark background */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-login__cta-content h2 {
    color: #FFD700;
}

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

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-login__cta-buttons .page-login__btn-primary,
.page-login__cta-buttons .page-login__btn-secondary {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 500px;
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__intro-description {
        font-size: 1em;
    }
    .page-login__login-card {
        padding: 30px 20px;
        margin-top: 20px;
    }
    .page-login__card-title {
        font-size: 1.5em;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }
    .page-login__btn-primary, .page-login__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-login__container {
        padding: 30px 15px;
    }
    .page-login__security-content,
    .page-login__mobile-content {
        flex-direction: column;
        text-align: center;
    }
    .page-login__security-image-wrapper,
    .page-login__mobile-image-wrapper {
        margin-top: 30px;
    }
    .page-login__mobile-content {
        flex-direction: column; /* Reset to column for mobile */
    }
    .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%;
        min-width: unset;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image and video responsive rules */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size is still met */
        min-height: 200px !important; /* Ensure min size is still met */
    }
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper,
    .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;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__cta-button,
    .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;
    }
}