/* style/login.css */

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

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

.page-login__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    background-color: #0A2E50; /* Deep blue background for hero */
    overflow: hidden;
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    color: #ffffff;
    margin-right: 40px; /* Space for image */
}

.page-login__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Gold title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.page-login__btn {
    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;
    text-align: center;
    max-width: 100%;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure word breaks */
}

.page-login__btn--primary {
    background-color: #FFD700; /* Gold button */
    color: #0A2E50; /* Deep blue text */
    border: 2px solid #FFD700;
}

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

.page-login__btn--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-login__btn--secondary:hover {
    background-color: #FFD700;
    color: #0A2E50;
}

.page-login__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3; /* Subtle background image */
    display: flex;
    justify-content: flex-end; /* Align image to the right */
    align-items: center;
}

.page-login__hero-image {
    width: 100%; /* Fill wrapper */
    height: 100%;
    object-fit: cover; /* Cover the area */
    object-position: right center; /* Align to the right */
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}


/* Advantages Section */
.page-login__advantages-section {
    background-color: #0A2E50; /* Deep blue background */
    padding: 80px 0;
}

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

.page-login__advantage-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    min-height: 450px; /* Ensure cards have similar height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-login__advantage-card:hover {
    transform: translateY(-10px);
}

.page-login__advantage-icon {
    width: 150px; /* Example size, ensuring > 200px requirement is met by actual image, but display can be smaller */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum display size for actual image */
    min-height: 200px;
    max-width: 100%; /* Responsive */
    height: auto;
}

.page-login__card-title {
    font-size: 1.5em;
    color: #FFD700; /* Gold for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__card-description {
    font-size: 1em;
    line-height: 1.6;
    flex-grow: 1; /* Allow description to take available space */
}

/* How-to-Login Section */
.page-login__how-to-login-section {
    padding: 80px 0;
    background-color: #0f0f0f; /* Slightly lighter dark background */
}

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

.page-login__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-login__step-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__step-description {
    font-size: 1em;
    line-height: 1.6;
}

.page-login__troubleshooting {
    margin-top: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 40px;
    color: #ffffff;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__troubleshooting-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__troubleshooting-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__troubleshooting-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    position: relative;
    padding-left: 25px;
}

.page-login__troubleshooting-list li::before {
    content: '•';
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Video Section */
.page-login__video-section {
    background-color: #0A2E50; /* Deep blue background */
    padding: 80px 0;
    text-align: center;
}

.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Responsive */
    height: auto; /* Responsive */
    display: block; /* Remove extra space below video */
}

.page-login__video-caption {
    font-style: italic;
    margin-top: 20px;
    color: #f0f0f0;
}

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

.page-login__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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.05);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
    font-weight: bold;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    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 20px 25px; /* Adjust padding for expanded state */
}

.page-login__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* Final CTA Section */
.page-login__final-cta-section {
    background-color: #0A2E50; /* Deep blue background */
    padding: 80px 0;
    text-align: center;
}

.page-login__final-cta-content {
    padding: 40px 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-login__hero-section {
        justify-content: space-between;
        padding-left: 100px;
        padding-right: 100px;
    }
    .page-login__hero-content {
        text-align: left;
        max-width: 600px;
        margin-right: 0;
        flex-basis: 50%;
    }
    .page-login__hero-title {
        font-size: 4em;
    }
    .page-login__hero-image-wrapper {
        position: relative;
        flex-basis: 50%;
        height: auto;
        opacity: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .page-login__hero-image {
        object-position: center;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 500px;
    }
    .page-login__cta-group {
        justify-content: flex-start;
    }
}


@media (max-width: 768px) {
    .page-login__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-login__hero-content {
        margin-right: 0;
        margin-bottom: 40px;
    }

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

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

    .page-login__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__hero-image-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        opacity: 1;
        margin-top: 30px;
    }

    .page-login__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
        object-fit: contain; /* Adjust object-fit for mobile */
    }

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

    .page-login__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-login__advantages-section,
    .page-login__how-to-login-section,
    .page-login__video-section,
    .page-login__faq-section,
    .page-login__final-cta-section {
        padding: 50px 0;
    }

    .page-login__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__advantage-card {
        min-height: auto; /* Allow height to adjust */
    }

    .page-login__advantage-icon {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-login__video-wrapper {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .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: 15px 20px 20px 20px;
    }

    /* All images in content area should be responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }
    
    .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,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* For multiple buttons in a row, ensure they wrap or stack */
    .page-login__cta-group {
        flex-direction: column;
        gap: 10px;
    }
}