/* style/login.css */

/* Base styles for the login page content */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color, #FFFFFF); /* Use shared body background, default to white */
}

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

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

.page-login__section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #26A9E0; /* Brand color for headings */
}

.page-login__section h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for subheadings */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #26A9E0, #1a7bb5); /* Gradient with brand color */
    color: #FFFFFF;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-login__hero-section h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #f0f8ff;
}

.page-login__hero-section .page-login__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-login__hero-image-container {
    flex: 1;
    min-width: 400px;
    max-width: 50%;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Login Form */
.page-login__login-form-wrapper {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 40px auto 0; /* Center form below hero text */
    text-align: left;
    color: #333333;
}

.page-login__login-form h2 {
    color: #26A9E0;
    margin-bottom: 25px;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.page-login__checkbox-label {
    color: #555555;
    cursor: pointer;
}

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

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

.page-login__login-button {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-color: #EA7C07; /* Custom color for login button */
    color: #FFFFFF;
    border: none;
}

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

.page-login__register-text {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #555555;
}

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

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

/* Why Choose Section */
.page-login__why-choose {
    background-color: #f8f8f8;
}

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

.page-login__feature-item {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.page-login__feature-item p {
    font-size: 1em;
    color: #555555;
    text-align: left;
    max-width: none;
}

.page-login__features-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Download App Section */
.page-login__download-app {
    background: linear-gradient(135deg, #1a7bb5, #26A9E0);
    color: #FFFFFF;
}

.page-login__download-app h2 {
    color: #FFFFFF;
}

.page-login__download-app p {
    color: #f0f8ff;
}

.page-login__download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping */
}

.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: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
    background-color: #EA7C07; /* Custom color for primary button */
    color: #FFFFFF;
    border: 2px solid transparent;
}

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

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

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

.page-login__app-screenshot {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Security and Privacy Section */
.page-login__security-privacy {
    background-color: #f8f8f8;
}

.page-login__security-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #FFFFFF;
}

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

.page-login__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f0f8ff;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #e0f2ff;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg);
    /* content: '−'; Handled by JS */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #FFFFFF;
    color: #555555;
    font-size: 1em;
}

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

.page-login__faq-answer p {
    margin-bottom: 0;
    text-align: left;
    max-width: none;
}

/* Final CTA Section */
.page-login__cta-bottom {
    background: #26A9E0;
    color: #FFFFFF;
}

.page-login__cta-bottom h2 {
    color: #FFFFFF;
}

.page-login__cta-bottom p {
    color: #f0f8ff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-section h1 {
        font-size: 2.8em;
    }

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

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

    .page-login__section h3 {
        font-size: 1.5em;
    }

    .page-login__hero-section .page-login__container {
        flex-direction: column;
        text-align: center;
    }

    .page-login__hero-content {
        order: 2; /* Put content below image on smaller screens */
        text-align: center;
    }

    .page-login__hero-image-container {
        order: 1;
        max-width: 80%;
        margin-bottom: 40px;
    }

    .page-login__login-form-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
}

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

    .page-login__hero-section {
        padding: 60px 0 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
    }

    .page-login__hero-section h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__section {
        padding: 40px 0;
    }

    .page-login__section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-login__section h3 {
        font-size: 1.3em;
    }

    .page-login__container {
        padding: 0 15px; /* Add padding to prevent content overflow */
    }

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__hero-image-container,
    .page-login__features-grid,
    .page-login__download-buttons,
    .page-login__app-screenshot,
    .page-login__security-image,
    .page-login__faq-list,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Buttons responsiveness */
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__login-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;
        margin-bottom: 15px; /* Add spacing between stacked buttons */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__download-buttons,
    .page-login__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 0 !important; /* Reset gap for column layout */
    }

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

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__forgot-password-link {
        margin-top: 5px;
    }

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

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

@media (max-width: 480px) {
    .page-login__hero-section h1 {
        font-size: 1.8em;
    }

    .page-login__section h2 {
        font-size: 1.5em;
    }

    .page-login__feature-item {
        padding: 20px;
    }

    .page-login__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
}