/* style/login.css */

/* Base Styles for .page-login */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default white */
    overflow-x: hidden; /* Prevent horizontal scroll on desktop too */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 60px;
    background-color: #f8f8f8;
    gap: 40px;
}

.page-login__hero-content {
    flex: 1;
    max-width: 50%;
    padding-right: 20px;
}

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

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

.page-login__login-form-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
}

.page-login__form-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 25px;
    text-align: center;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    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 {
    color: #555555;
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
}

.page-login__forgot-password:hover {
    text-decoration: underline;
}

.page-login__btn-submit {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #EA7C07; /* Custom color for login button */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-submit:hover {
    background-color: #d86f06;
}

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

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

.page-login__register-link:hover {
    text-decoration: underline;
}

.page-login__hero-image-container {
    flex: 1;
    max-width: 50%;
    text-align: right;
}

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

/* Advantages Section */
.page-login__advantages-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

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

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

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

.page-login__advantage-card {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__advantage-icon {
    width: 100%; /* Ensure image fills card */
    max-width: 250px; /* Max size for card images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Video Section */
.page-login__video-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark background for this section */
    text-align: center;
    color: #ffffff; /* White text for dark background */
}

.page-login__video-section .page-login__section-title,
.page-login__video-section .page-login__section-description {
    color: #ffffff; /* Ensure titles/descriptions are white */
}

.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 40px auto 0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-login__video-link {
    display: block; /* Make the whole video wrapper clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-login__faq-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-heading {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to a cross */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    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 20px;
}

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

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
    color: #ffffff;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

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

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7eb3;
    border-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-login__hero-section {
        flex-direction: column;
        text-align: center;
        padding-bottom: 40px;
    }

    .page-login__hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .page-login__hero-image-container {
        max-width: 100%;
        text-align: center;
    }

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

    .page-login__advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .page-login__container {
        padding: 0 15px !important; /* Add padding for mobile content */
    }

    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 30px;
        gap: 30px;
    }

    .page-login__hero-content,
    .page-login__hero-image-container {
        max-width: 100% !important;
        width: 100% !important;
        padding-right: 0 !important;
    }

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

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

    .page-login__login-form-wrapper {
        padding: 25px;
        max-width: 100%;
    }

    .page-login__form-title {
        font-size: 1.5em;
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    /* Video responsiveness */
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section top padding is correct */
    }

    /* Button responsiveness */
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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 !important;
        padding-right: 15px !important;
    }

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

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

    .page-login__advantages-grid {
        grid-template-columns: 1fr;
    }

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