/* style/login.css */

/* General page styling */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Default text color for light background */
    background-color: var(--background-color, #F4F7FB); /* From shared, fallback to #F4F7FB */
}

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

.page-login__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #1F2D3D; /* Dark text for light background */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__section-subtitle {
    font-size: 18px;
    color: #1F2D3D; /* Dark text for light background */
    text-align: center;
    margin-bottom: 40px;
}

/* Hero Section */
.page-login__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Blue gradient background */
    color: #ffffff; /* White text for dark background */
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.8; /* Slightly transparent to blend with gradient */
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-login__main-title {
    font-size: clamp(32px, 4vw, 48px); /* Responsive H1 font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-login__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f8ff;
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Form Section */
.page-login__form-section {
    padding: 80px 0;
    margin-bottom: 40px;
}

.page-login__login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    color: #1F2D3D;
}

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

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

.page-login__remember-me {
    display: flex;
    align-items: center;
}

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

.page-login__checkbox-label {
    color: #1F2D3D;
}

.page-login__forgot-password {
    color: #2F6BFF;
    text-decoration: none;
    font-weight: 600;
}

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

.page-login__submit-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__submit-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-login__no-account {
    text-align: center;
    margin-top: 25px;
    color: #1F2D3D;
}

.page-login__no-account a {
    color: #2F6BFF;
    text-decoration: none;
    font-weight: 600;
}

.page-login__no-account a:hover {
    text-decoration: underline;
}

/* Security Section (Dark Background) */
.page-login__security-section {
    padding: 80px 0;
    background: #2F6BFF; /* Main brand color for dark background */
    color: #ffffff; /* White text for dark background */
    margin-bottom: 40px;
}

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-subtitle {
    color: #ffffff;
}

.page-login__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__feature-icon {
    width: 100%;
    height: auto;
    max-width: 200px; /* Example: Constrain icon width if needed, but ensure min size */
    margin: 0 auto 20px;
    object-fit: contain;
    min-width: 200px; /* Min image size enforcement */
    min-height: 200px;
}

.page-login__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-login__feature-description {
    font-size: 16px;
    color: #f0f8ff;
}

/* Benefits Section (Light Background) */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #F4F7FB; /* Background color */
    color: #1F2D3D; /* Dark text for light background */
    margin-bottom: 40px;
}

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

.page-login__benefit-card {
    background-color: #FFFFFF; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-login__benefit-icon {
    width: 100%; /* Card image takes full width */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Min image size enforcement */
    min-height: 200px;
}

.page-login__benefit-title {
    font-size: 24px;
    font-weight: bold;
    color: #1F2D3D;
    margin-bottom: 15px;
}

.page-login__benefit-description {
    font-size: 16px;
    color: #555;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background: #2F6BFF; /* Main brand color for dark background */
    color: #ffffff; /* White text for dark background */
    margin-bottom: 40px;
}

.page-login__faq-section .page-login__section-title,
.page-login__faq-section .page-login__section-subtitle {
    color: #ffffff;
}

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #ffffff;
    list-style: none; /* Remove default marker */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.page-login__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

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

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

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

.page-login__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #f0f8ff;
}

/* Support CTA Section */
.page-login__support-cta-section {
    padding: 80px 0;
    background-color: #F4F7FB; /* Light background */
    color: #1F2D3D; /* Dark text */
    text-align: center;
}

.page-login__support-cta-section .page-login__section-title {
    margin-bottom: 20px;
}

/* Image responsiveness for all images */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

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

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

    .page-login__hero-section {
        padding-top: 10px; /* Maintain small top padding */
        margin-bottom: 20px;
    }

    .page-login__hero-content {
        padding: 40px 15px;
    }

    .page-login__main-title {
        font-size: 30px;
    }

    .page-login__description {
        font-size: 16px;
    }

    .page-login__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__submit-button,
    .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__form-section,
    .page-login__security-section,
    .page-login__benefits-section,
    .page-login__faq-section,
    .page-login__support-cta-section {
        padding: 40px 0;
        margin-bottom: 20px;
    }

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

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-login__security-features,
    .page-login__benefits-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

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

    .page-login__feature-icon,
    .page-login__benefit-icon {
        min-width: 200px; /* Ensure min image size is respected */
        min-height: 200px;
        width: 100%; /* Fill card width */
        height: auto;
    }
    
    .page-login__section-title {
        font-size: 28px;
    }

    .page-login__section-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-login__feature-title,
    .page-login__benefit-title {
        font-size: 20px;
    }

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

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

    .page-login__faq-answer {
        padding: 0 20px 15px;
        font-size: 14px;
    }

    /* General image and container responsiveness for mobile */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__form-section,
    .page-login__security-section,
    .page-login__benefits-section,
    .page-login__faq-section,
    .page-login__support-cta-section,
    .page-login__login-form,
    .page-login__feature-item,
    .page-login__benefit-card,
    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding added to containers to prevent content touching edges */
        padding-left: 15px; 
        padding-right: 15px;
    }
    /* Override specific element paddings to ensure consistency */
    .page-login__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-login__login-form,
    .page-login__feature-item,
    .page-login__benefit-card,
    .page-login__faq-item {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}