/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Body background from shared.css */
}

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

/* Section general styling */
.page-login__hero-section,
.page-login__benefits-section,
.page-login__security-section,
.page-login__troubleshooting-section,
.page-login__faq-section,
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
}

/* Dark background sections (e.g., hero, security, FAQ) */
.page-login__dark-bg {
    background-color: #000000; /* Match body background */
    color: #ffffff; /* Light text for dark background */
}

/* Light background sections (e.g., benefits, troubleshooting, CTA) */
.page-login__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

/* Fixed header offset for the first content section */
.page-login__hero-section {
    padding-top: var(--header-offset, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.page-login__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    z-index: 1;
}

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

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand primary color for title */
    line-height: 1.2;
}

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

.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto 30px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-align: left;
}

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

.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: rgba(255, 255, 255, 0.6);
}

.page-login__form-input:focus {
    outline: none;
    border-color: #EA7C07;
    box-shadow: 0 0 0 3px rgba(40, 167, 226, 0.3);
}

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.page-login__btn-login {
    background-color: #EA7C07; /* Custom login button color */
    color: #ffffff;
    padding: 14px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.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: #EA7C07;
    text-decoration: underline;
}

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

.page-login__register-prompt p {
    margin-bottom: 10px;
}

.page-login__btn-register {
    background-color: #26A9E0; /* Primary brand color for register button */
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-register:hover {
    background-color: #1e87bb;
    transform: translateY(-2px);
}

.page-login__hero-image-wrapper {
    display: none; /* Hidden on desktop for hero content focus */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

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

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

/* 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-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
}

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

/* Security Section */
.page-login__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.page-login__security-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.page-login__security-text {
    flex-grow: 1;
}

.page-login__security-text .page-login__section-title {
    text-align: left;
    color: #26A9E0;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-login__security-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2326A9E0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-8.93"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #ffffff;
}

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

.page-login__troubleshooting-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    color: #333333;
}

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

.page-login__support-cta {
    margin-top: 50px;
}

.page-login__btn-support {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 14px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-support:hover {
    background-color: #1e87bb;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-login__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.05);
    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;
    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;
    margin: 0;
    color: #26A9E0;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    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 25px;
    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: 15px 25px 25px 25px;
}

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

/* CTA Section */
.page-login__btn-register-cta {
    background-color: #EA7C07; /* Custom login button color */
    color: #ffffff;
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-register-cta:hover {
    background-color: #d16e06;
    transform: translateY(-2px);
}

/* Floating Buttons */
.page-login__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-login__floating-btn {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-login__floating-btn--login {
    background-color: #EA7C07;
}

.page-login__floating-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

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

    .page-login__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Fixed header offset for the first content section on mobile */
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
        min-height: auto;
    }

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

    .page-login__hero-description {
        font-size: 1em;
    }

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

    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .page-login__btn-login,
    .page-login__btn-register,
    .page-login__btn-support,
    .page-login__btn-register-cta,
    .page-login__floating-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 !important; /* Add padding for text */
        padding-right: 15px !important;
    }

    .page-login__hero-image-wrapper {
        display: block; /* Show image on mobile */
        margin-top: 40px;
    }

    .page-login__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-login__section-description {
        font-size: 1em;
    }

    .page-login__benefits-grid,
    .page-login__troubleshooting-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-login__security-content {
        flex-direction: column;
        text-align: center;
    }

    .page-login__security-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-bottom: 30px;
    }

    .page-login__security-text .page-login__section-title {
        text-align: center;
    }

    .page-login__security-list li {
        text-align: left;
    }

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

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

    .page-login__faq-title {
        font-size: 1.1em;
    }

    .page-login__faq-answer {
        padding: 0 20px;
    }

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    .page-login__floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
}

/* Ensure all images are responsive and do not cause overflow */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile image and container overflow fix */
@media (max-width: 768px) {
    .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__hero-image-wrapper,
    .page-login__security-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Override padding for specific containers if needed, e.g., for full-width elements */
    .page-login__hero-section .page-login__container,
    .page-login__security-section .page-login__container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Specific image containers that might not be a direct section/card/container */
    .page-login__security-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-login__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Video responsiveness (if any, though not explicitly in this HTML) */
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Button responsiveness */
    .page-login__cta-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"],
    .page-login__btn-login,
    .page-login__btn-register,
    .page-login__btn-support,
    .page-login__btn-register-cta {
        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,
    .page-login__button-group,
    .page-login__btn-container,
    .page-login__form-actions {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-login__form-actions {
        flex-direction: column !important;
    }
    .page-login__floating-buttons {
        align-items: center;
    }
    .page-login__floating-btn {
        width: 80% !important;
    }
}