/* style/login.css */

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

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

.page-login__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-login__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 120px 20px 80px; /* Default desktop padding, will be adjusted by var(--header-offset) */
    padding-top: var(--header-offset, 120px); /* Ensures content is not covered by fixed header */
    background-size: cover;
    background-position: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

.page-login__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: 1;
}

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

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

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

.page-login__login-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 40px auto 0; /* Centered below hero text */
    text-align: left;
}

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

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

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

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

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px; /* Added gap for spacing */
}

.page-login__btn-primary {
    display: inline-block;
    background-color: #EA7C07; /* Login button color */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

.page-login__btn-secondary {
    display: inline-block;
    background-color: #26A9E0; /* Brand color for secondary buttons */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-secondary:hover {
    background-color: #1f8ec7;
}

.page-login__link-forgot-password {
    color: #26A9E0;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent breaking too early */
}

.page-login__link-forgot-password:hover {
    color: #1f8ec7;
    text-decoration: underline;
}

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

.page-login__link-register {
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__link-register:hover {
    color: #d66c06;
    text-decoration: underline;
}

.page-login__download-prompt {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.page-login__download-prompt p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-login__btn-download {
    background-color: #26A9E0;
}
.page-login__btn-download:hover {
    background-color: #1f8ec7;
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: #0d0d0d; /* Darker background for contrast with hero */
    color: #ffffff;
    padding-bottom: 80px;
}

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__benefit-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Responsive image */
    height: auto; /* Maintain aspect ratio */
    display: block;
}

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

.page-login__benefit-text {
    font-size: 1em;
    color: #cccccc;
}

/* Guide Section */
.page-login__guide-section {
    background-color: #000000; /* Use body background for this section */
    color: #ffffff;
    padding-bottom: 80px;
}

.page-login__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-login__step-item {
    text-align: left;
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #EA7C07;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-login__step-text {
    color: #cccccc;
}

.page-login__cta-bottom {
    margin-top: 60px;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    background-color: #0d0d0d;
    color: #ffffff;
    padding-bottom: 80px;
}

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

.page-login__trouble-item.page-login__card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-login__trouble-text {
    color: #cccccc;
}

/* Security Section */
.page-login__security-section {
    background-color: #000000;
    color: #ffffff;
    padding-bottom: 80px;
}

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

.page-login__tip-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-login__tip-text {
    color: #cccccc;
}

/* CTA Download Section */
.page-login__cta-download-section {
    background-color: #0d0d0d;
    color: #ffffff;
    padding-bottom: 80px;
}

.page-login__cta-download-section .page-login__section-description {
    margin-bottom: 30px;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-login__cta-buttons .page-login__btn-primary,
.page-login__cta-buttons .page-login__btn-secondary {
    flex-grow: 1;
    max-width: 250px; /* Limit button width on larger screens */
}

.page-login__btn-download-app {
    background-color: #EA7C07;
}
.page-login__btn-download-app:hover {
    background-color: #d66c06;
}

.page-login__cta-download-section .page-login__btn-secondary {
    background-color: #26A9E0;
}
.page-login__cta-download-section .page-login__btn-secondary:hover {
    background-color: #1f8ec7;
}

.page-login__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-top: 30px;
    border-radius: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #000000;
    color: #ffffff;
    padding-bottom: 80px;
}

.page-login__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
    text-align: left;
}

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* Hide default marker for details/summary */
}

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

.page-login__faq-qtext {
    flex-grow: 1;
    color: #ffffff; /* Ensure question text is white */
}

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

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

.page-login__faq-answer {
    padding: 20px 30px;
    font-size: 1em;
    color: #cccccc;
    background-color: rgba(255, 255, 255, 0.03);
}

/* Contact CTA Section */
.page-login__contact-cta-section {
    background-color: #0d0d0d; /* Light background for this section (relative to others) */
    color: #ffffff;
    padding-bottom: 80px;
}

.page-login__contact-cta-section .page-login__cta-buttons {
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__hero-description {
        font-size: 1.2em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: var(--header-offset, 120px) 15px 60px; /* Mobile padding with header offset */
        min-height: 60vh;
    }
    .page-login__hero-content {
        padding: 0 15px;
    }
    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__login-card {
        padding: 30px 20px;
        max-width: 100%;
        margin-top: 30px;
    }
    .page-login__card-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }
    .page-login__form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-login__link-forgot-password {
        text-align: center;
        width: 100%;
        display: block;
        margin-top: 10px;
    }

    .page-login__section {
        padding: 40px 0;
    }
    .page-login__container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-login__benefits-grid,
    .page-login__guide-steps,
    .page-login__troubleshooting-grid,
    .page-login__security-tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__benefit-image {
        height: 180px; /* Adjust height for mobile */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container for buttons */
    }
    .page-login__cta-buttons .page-login__btn-primary,
    .page-login__cta-buttons .page-login__btn-secondary {
        max-width: 100%;
        width: 100%;
    }

    .page-login__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure all images are responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all image containers are responsive */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__benefits-grid,
    .page-login__guide-steps,
    .page-login__troubleshooting-grid,
    .page-login__security-tips-grid,
    .page-login__cta-buttons {
        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__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
    }
}

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