/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body or shared, ensuring dark background */
}

/* Container for consistent padding and max-width */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-login__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow horizontally */
}

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand primary color for titles */
    font-weight: bold;
}

.page-login__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Hero Section */
.page-login__hero-section {
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #0a0a0a; /* Explicitly set background for hero if not inherited */
    color: #ffffff;
}

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

.page-login__hero-section .page-login__container {
    z-index: 2;
    position: relative;
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-weight: 900;
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Button styles */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-login__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-login__btn-primary:hover {
    background-color: #1a8ccb;
    border-color: #1a8ccb;
}

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

.page-login__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Hero Image */
.page-login__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5); /* Darken image for better text contrast */
}

/* Why Login Section */
.page-login__why-login {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
}

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

.page-login__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
    width: 200px; /* Min size 200px */
    height: 150px; /* Maintain aspect ratio or adjust */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Login Steps Section */
.page-login__login-steps {
    background-color: #0a0a0a; /* Dark background */
}

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

.page-login__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    min-height: 250px; /* Ensure consistent height */
}

.page-login__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-login__step-title {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-login__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Security & Privacy Section */
.page-login__security-privacy {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-login__security-info {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
    flex-wrap: wrap;
    justify-content: center;
}

.page-login__security-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.page-login__security-list li {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-login__security-list-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 5px;
}

/* Troubleshooting Section */
.page-login__troubleshooting {
    background-color: #0a0a0a;
}

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

.page-login__trouble-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    color: #ffffff;
}

.page-login__trouble-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-login__trouble-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__trouble-cta {
    margin-top: 40px;
}

/* Promotions Section */
.page-login__promotions {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-login__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.page-login__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.page-login__promo-description {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-login__promo-card .page-login__btn-secondary {
    align-self: flex-start; /* Align button to start */
}

.page-login__promo-cta {
    margin-top: 40px;
}

/* App Download Section */
.page-login__app-download {
    background-color: #0a0a0a;
}

.page-login__download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-login__qr-code {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #FFFFFF; /* QR code often needs a light background */
    padding: 10px;
}

.page-login__download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 250px;
}

/* FAQ Section */
.page-login__faq {
    background-color: rgba(255, 255, 255, 0.05);
    text-align: left;
}

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    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;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    font-size: 1.2em;
    color: #FFFFFF;
    margin: 0;
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-left: 15px;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

/* Final CTA Section */
.page-login__final-cta {
    padding-bottom: 80px;
    background-color: #26A9E0; /* Brand primary color for a strong CTA */
    color: #ffffff;
}

.page-login__final-cta .page-login__section-title {
    color: #FFFFFF;
}

.page-login__final-cta .page-login__text-block {
    color: #f0f0f0;
}

.page-login__final-cta .page-login__btn-secondary {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-login__final-cta .page-login__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
}

/* Links within text */
.page-login a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login a:hover {
    color: #1a8ccb;
    text-decoration: underline;
}

/* Responsive styles */
@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 {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__container {
        padding: 0 15px;
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__description {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__text-block {
        font-size: 1em;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        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;
    }

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-image-wrapper,
    .page-login__feature-item,
    .page-login__step-item,
    .page-login__security-info,
    .page-login__trouble-item,
    .page-login__promo-card,
    .page-login__app-download,
    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__security-info {
        flex-direction: column;
        gap: 20px;
    }
    .page-login__download-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-login__qr-code {
        width: 200px;
        height: 200px;
    }
    .page-login__download-buttons {
        width: 100%;
    }
    .page-login__promo-image {
        height: auto; /* Allow auto height on mobile for promo cards */
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
}