.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #0a0a0a, so light text */
    background-color: transparent; /* Main body background is from shared.css */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 100px 0;
    background: url('[GALLERY:bg_hero:1920x1080:login_background,abstract_tech,blue_orange_gradient]') no-repeat center center/cover;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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 */
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 30px;
}

.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 25px;
    color: #FFFFFF;
}

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

.page-login__form-group {
    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 #26A9E0;
    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: #ccc;
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.page-login__forgot-password-link {
    color: #26A9E0;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #FFFFFF;
}

.page-login__btn-login {
    background-color: #EA7C07; /* Login button color */
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* For button-like links */
    display: inline-block; /* For button-like links */
    text-align: center;
}

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

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

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

.page-login__register-link:hover {
    color: #FFFFFF;
}

.page-login__hero-image-wrapper {
    display: none; /* Hide image in hero section on desktop, only use background */
}

/* General Section Styles */
.page-login__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0;
    line-height: 1.3;
}

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

/* Dark Background Sections */
.page-login__dark-section {
    background-color: #1a1a1a; /* Slightly lighter than body background for distinction */
    padding: 60px 0;
    color: #ffffff;
}

.page-login__dark-section .page-login__section-title {
    color: #FFFFFF; /* White title on dark background */
}

.page-login__dark-section .page-login__section-description {
    color: #e0e0e0;
}

/* Light Background Sections */
.page-login__light-bg {
    background-color: #ffffff;
    padding: 60px 0;
    color: #333333; /* Dark text on light background */
}

.page-login__light-bg .page-login__section-title {
    color: #26A9E0; /* Brand color title on light background */
}

.page-login__light-bg .page-login__section-description {
    color: #555555;
}

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

.page-login__benefit-card {
    background: rgba(255, 255, 255, 0.08); /* Transparent card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(38, 169, 224, 0.3); /* Subtle border with brand color */
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(38, 169, 224, 0.15);
}

.page-login__benefit-icon {
    width: 200px; /* Min size 200x200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-login__card-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* How-to Login Section */
.page-login__login-steps {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-login__step-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border-left: 5px solid #26A9E0;
}

.page-login__step-item:hover {
    transform: translateY(-5px);
}

.page-login__step-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-login__step-text {
    font-size: 1em;
    color: #555555;
}

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

.page-login__feature-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-login__feature-icon {
    width: 250px; /* Min size 200x200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__feature-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #26A9E0;
}

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

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
}

.page-login__faq-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    list-style: none; /* For details/summary */
}

.page-login__faq-item[open] .page-login__faq-question {
    border-bottom: 1px solid #ddd;
}

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

.page-login__faq-qtext {
    flex-grow: 1;
    color: #26A9E0;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

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

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

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
}

.page-login__cta-section .page-login__section-title {
    color: #FFFFFF;
}

.page-login__cta-section .page-login__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    display: inline-flex; /* Use flex for button content alignment */
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure responsiveness */
}

.page-login__btn-primary {
    background-color: #EA7C07;
    color: #ffffff;
    border: 2px solid transparent;
}

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

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

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a88bb;
    transform: translateY(-2px);
    border-color: #1a88bb;
}

/* --- Global Image/Video/Button Responsiveness for Mobile --- */
/* Ensure images, videos, and buttons adapt to mobile screens without overflow */
@media (max-width: 768px) {
    .page-login__main-title {
        font-size: 2.2em;
    }

    .page-login__section-title {
        font-size: 2em;
    }

    .page-login__description,
    .page-login__section-description,
    .page-login__card-text,
    .page-login__step-text,
    .page-login__feature-text,
    .page-login__faq-answer p {
        font-size: 0.95em;
    }

    .page-login__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-login__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-login video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* All containers that might hold images/videos/buttons */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__how-to-login,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__cta-section,
    .page-login__login-form-wrapper,
    .page-login__benefits-grid,
    .page-login__login-steps,
    .page-login__security-features,
    .page-login__faq-list,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to content within sections */
        padding-right: 15px; /* Add padding to content within sections */
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons specific mobile styles */
    .page-login__btn-login,
    .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;
    }

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

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

    .page-login__form-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .page-login__forgot-password-link {
        text-align: center;
    }

    .page-login__benefits-grid,
    .page-login__login-steps,
    .page-login__security-features {
        grid-template-columns: 1fr; /* Single column layout for grids */
    }

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

/* Ensure no CSS filters are applied to images */
.page-login img,
.page-login__benefit-icon,
.page-login__feature-icon {
    filter: none !important;
}

/* Ensure content area images are not too small (min 200x200px) */
.page-login__benefit-icon,
.page-login__feature-icon {
    min-width: 200px;
    min-height: 200px;
}