/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default body background is white */
}

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

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

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

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-login__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-login__section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: inherit; /* Inherit color from section background */
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit;
}

/* Hero Section */
.page-login__hero-section {
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    position: relative;
    overflow: hidden;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for image */
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-login__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000000; /* Dark text for white background */
}

.page-login__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #333333;
}

/* Buttons */
.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping 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: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

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

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

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

.page-login__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Benefits Section */
.page-login__benefits-section .page-login__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
    height: 100%; /* Ensure equal height */
    box-sizing: border-box;
}

.page-login__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px;
}

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

.page-login__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Allow text to take available space */
}

/* How to Login Section */
.page-login__how-to-login .page-login__section-title,
.page-login__how-to-login .page-login__section-description {
    color: #ffffff;
}

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

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

.page-login__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #EA7C07; /* Login button color */
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-login__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__image-and-text {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping */
}

.page-login__process-image {
    flex: 1;
    min-width: 300px; /* Minimum width for image */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-height: 200px; /* Min size requirement */
}

.page-login__text-block {
    flex: 1;
    min-width: 300px; /* Minimum width for text block */
    color: #ffffff;
}

.page-login__sub-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-login__paragraph {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Security Section */
.page-login__security-section .page-login__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__security-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
    height: 100%;
    box-sizing: border-box;
}

.page-login__security-icon {
    width: 100%;
    height: 150px; /* Fixed height for consistency */
    object-fit: contain; /* Use contain for icons/logos */
    margin-bottom: 20px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px;
}

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

.page-login__security-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

/* Explore Section */
.page-login__explore-section .page-login__section-title,
.page-login__explore-section .page-login__section-description {
    color: #ffffff;
}

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

.page-login__explore-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.page-login__explore-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-login__explore-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: #26A9E0; /* Primary brand color for questions */
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-login__faq-qtext {
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

/* Final CTA Section */
.page-login__cta-final {
    padding: 80px 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__description {
        font-size: 1.1em;
    }
}

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

    .page-login__container {
        padding: 0 15px;
    }

    .page-login__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-login__hero-content {
        padding: 0 15px;
    }

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

    .page-login__description {
        font-size: 1em;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

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

    .page-login__grid,
    .page-login__steps-grid,
    .page-login__explore-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__card,
    .page-login__step-item,
    .page-login__security-item,
    .page-login__explore-card {
        padding: 25px;
    }

    .page-login__image-and-text {
        flex-direction: column;
        gap: 30px;
        margin-top: 40px;
    }

    .page-login__process-image,
    .page-login__security-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
    }

    .page-login__text-block {
        min-width: unset;
        width: 100%;
        padding: 0 15px;
    }

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

    /* All images responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* All containers that might hold images/buttons/videos */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-image-wrapper,
    .page-login__image-and-text,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific overrides for sections where padding is already handled by grid/flex gap or inner containers */
    .page-login__hero-section,
    .page-login__section.page-login__dark-bg,
    .page-login__section.page-login__light-bg {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-login__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-login__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}