/* style/login.css */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f8f9fa; /* Default text color for dark body background */
    background-color: var(--dark-bg-1, #1a1a1a); /* From shared.css, assuming dark background for body */
}

/* Ensure padding-top for fixed header if shared.css doesn't apply it to body */
.page-login__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop and mobile controlled by shared --header-offset */
}

.page-login__dark-bg {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff; /* White text for contrast */
}

.page-login__light-bg {
    background-color: #FFFFFF; /* Auxiliary color / White background */
    color: #333333; /* Dark text for contrast */
}

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

.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    padding-bottom: 60px;
    overflow: hidden; /* Prevent image overflow */
}

.page-login__hero-content {
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-login__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-login__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-login__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    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: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

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

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

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

.page-login__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1c8ac2;
    border-color: #1c8ac2;
}

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

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

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: inherit; /* Inherit color from parent section for contrast */
}

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

.page-login__step-item,
.page-login__benefit-item,
.page-login__trouble-item,
.page-login__platform-item {
    background-color: #ffffff; /* White background for light section, otherwise inherit/adjust */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333; /* Dark text for these items */
    box-sizing: border-box;
}

.page-login__dark-bg .page-login__step-item,
.page-login__dark-bg .page-login__benefit-item,
.page-login__dark-bg .page-login__trouble-item,
.page-login__dark-bg .page-login__platform-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__step-image,
.page-login__benefit-image,
.page-login__platform-image,
.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
    margin-left: auto;
    margin-right: auto;
}

.page-login__step-title,
.page-login__benefit-title,
.page-login__trouble-title,
.page-login__platform-title,
.page-login__security-subtitle {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: inherit;
}

.page-login__step-text,
.page-login__benefit-text,
.page-login__trouble-text,
.page-login__platform-text,
.page-login__security-text {
    font-size: 1em;
    color: inherit;
}

.page-login__note-block {
    background-color: #fff8e1; /* Light yellow for notes */
    border-left: 5px solid #ffc107;
    padding: 20px;
    margin-top: 40px;
    border-radius: 5px;
    color: #333333;
}

.page-login__note-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333333;
}

.page-login__note-list {
    list-style: disc;
    padding-left: 25px;
}

.page-login__note-list li {
    margin-bottom: 8px;
}

.page-login__link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-login__link:hover {
    color: #1c8ac2;
}

.page-login__keyword {
    font-weight: bold;
    color: #26A9E0; /* Highlight keywords */
}
.page-login__dark-bg .page-login__keyword {
    color: #ffeb3b; /* Yellowish highlight on dark background */
}


.page-login__cta-area {
    text-align: center;
    margin-top: 60px;
}

.page-login__cta-text {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: inherit;
}

.page-login__support-cta {
    text-align: center;
    margin-top: 40px;
}

.page-login__support-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: inherit;
}

.page-login__platform-item .page-login__btn-primary {
    margin-top: 20px;
}

.page-login__security-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-login__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.page-login__security-details {
    flex: 1;
}

.page-login__security-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 15px;
}

.page-login__security-list li {
    margin-bottom: 8px;
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #26A9E0; /* Brand color background for FAQ */
    color: #ffffff;
}

.page-login__faq-list {
    margin-top: 40px;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
    position: relative;
}

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

.page-login__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

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

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

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

.page-login__faq-item[open] .page-login__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

/* For JS-controlled FAQ (if not using <details>) */
.page-login__faq-item.active .page-login__faq-answer {
    max-height: 500px !important; /* Use !important for JS override */
    padding-top: 15px;
}
.page-login__faq-item.active .page-login__faq-toggle {
    content: '−';
}
.page-login__faq-item:not(.active) .page-login__faq-toggle {
    content: '+';
}


.page-login__cta-final {
    padding: 80px 0;
}

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

.page-login__cta-final .page-login__btn-primary,
.page-login__cta-final .page-login__btn-secondary {
    margin: 10px;
}

/* --- Responsive Design --- */

/* Tablet and Mobile adjustments */
@media (max-width: 992px) {
    .page-login__hero-title {
        font-size: 2.5em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__security-content {
        flex-direction: column;
        align-items: center;
    }
    .page-login__security-image {
        max-width: 80%;
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-login__container {
        padding: 0 15px; /* Add side padding for mobile */
    }

    .page-login__hero-section {
        min-height: 450px;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__hero-title {
        font-size: 2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !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;
        padding: 0 15px;
    }

    .page-login__steps-grid,
    .page-login__benefits-grid,
    .page-login__troubleshooting-grid,
    .page-login__platform-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        padding: 0 15px;
    }

    .page-login__step-item,
    .page-login__benefit-item,
    .page-login__trouble-item,
    .page-login__platform-item {
        padding: 20px;
    }

    .page-login__step-title,
    .page-login__benefit-title,
    .page-login__trouble-title,
    .page-login__platform-title,
    .page-login__security-subtitle {
        font-size: 1.3em;
    }

    .page-login__note-block {
        margin: 30px 15px 0;
        padding: 15px;
    }
}