/* style/login.css */

/* Variables and general styling for .page-login scope */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    line-height: 1.6;
    background-color: var(--bg-color, #ffffff); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-bottom: 60px; /* Space below content */
    background-color: #26A9E0; /* Brand main color for hero section background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-login__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width of the image itself */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-login__hero-content {
    max-width: 900px;
    padding: 0 20px;
    margin-top: -80px; /* Pull content up slightly over the image for visual flow */
    position: relative;
    z-index: 1; /* Ensure content is above image if there's overlap */
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff; /* White text on hero background */
}

.page-login__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for contrast */
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

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

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

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

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

.page-login__btn-large {
    min-width: 200px; /* Larger buttons */
    padding: 18px 35px;
}

/* General Section Styling */
.page-login__section {
    padding: 60px 0;
    background-color: #ffffff; /* Default light background for content sections */
    color: #333333; /* Dark text for light background */
}

.page-login__section:nth-of-type(even) {
    background-color: #f8f8f8; /* Alternate background for better visual separation */
}

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

.page-login__container--centered {
    text-align: center;
}

.page-login__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: #26A9E0; /* Brand main color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-login__description-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Grid Layouts */
.page-login__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-login__grid--3-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Guide Steps */
.page-login__guide-step {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

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

.page-login__guide-step p {
    margin-bottom: 20px;
    flex-grow: 1; /* Push image/button to bottom */
}

.page-login__guide-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: auto; /* Push image to bottom if content is shorter */
    margin-bottom: 15px;
}

.page-login__step-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-login__step-list li {
    margin-bottom: 10px;
    color: #333333;
}

.page-login__btn-download {
    display: inline-block;
    background-color: #EA7C07; /* Custom color for Login/Download */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Align button to bottom */
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-download:hover {
    background-color: #d16e06;
}

/* Benefit Cards */
.page-login__benefit-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-login__benefit-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-login__card-link {
    display: inline-block;
    color: #EA7C07; /* Custom color for Login */
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: color 0.3s ease;
}

.page-login__card-link:hover {
    text-decoration: underline;
    color: #d16e06;
}

/* Troubleshooting Cards */
.page-login__issue-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-login__issue-card .page-login__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__issue-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-login__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-login__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
}

.page-login__faq-item summary:hover {
    background-color: #e9e9e9;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-login__faq-item summary::marker {
    display: none;
}

.page-login__faq-qtext {
    flex-grow: 1;
    color: #26A9E0; /* Brand main color for FAQ questions */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #EA7C07; /* Custom color for Login */
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-login__faq-answer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    color: #555555;
    font-size: 1em;
}

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

/* Call to Action Section */
.page-login__call-to-action {
    background-color: #26A9E0; /* Brand main color for CTA background */
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.page-login__call-to-action .page-login__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-login__call-to-action .page-login__description-text {
    color: #f0f0f0;
    margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-content {
        margin-top: -60px;
    }
}

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

    .page-login__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-login__hero-content {
        margin-top: -40px;
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-login__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-download,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        width: 100% !important; /* Full width buttons */
        max-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 {
        padding: 40px 0;
    }

    .page-login__container {
        padding: 0 15px; /* Add horizontal padding to main containers */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-login__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-login__grid {
        grid-template-columns: 1fr; /* Single column layout for grids */
        gap: 20px;
    }

    .page-login__guide-step,
    .page-login__benefit-card,
    .page-login__issue-card {
        padding: 25px;
    }

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

    /* Video specific responsive (if any, though none explicitly added for login page video element) */
    .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;
    }
}

@media (max-width: 480px) {
    .page-login__hero-content {
        margin-top: -20px;
    }
    .page-login__main-title {
        font-size: clamp(1.5em, 9vw, 2em);
    }
    .page-login__intro-text {
        font-size: 0.95em;
    }
    .page-login__btn-large {
        min-width: unset;
    }
}