/* style/login.css */

/* Base styles for the login page */
.page-login {
    color: #ffffff; /* Default text color for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Shared.css will handle body background */
}

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

.page-login__main-heading,
.page-login__section-title,
.page-login__form-title,
.page-login__benefit-title,
.page-login__step-title,
.page-login__security-title,
.page-login__faq-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.page-login__main-heading {
    font-size: 2.8em;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    margin-bottom: 25px;
}

.page-login__intro-text,
.page-login__section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    box-sizing: border-box;
    overflow: hidden; /* Prevent background image overflow */
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
}

.page-login__login-form-wrapper {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    margin: 40px auto 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #26A9E0;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #bbb;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
}

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

.page-login__checkbox-label {
    font-size: 0.95em;
    color: #f0f0f0;
}

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

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

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

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

.page-login__social-login {
    margin-top: 30px;
    text-align: center;
}

.page-login__social-text {
    color: #f0f0f0;
    margin-bottom: 15px;
    position: relative;
}

.page-login__social-text::before,
.page-login__social-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #555;
}

.page-login__social-text::before {
    left: 0;
}

.page-login__social-text::after {
    right: 0;
}

.page-login__social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.page-login__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #444;
    transition: background-color 0.3s ease;
}

.page-login__social-btn:hover {
    background-color: #666;
}

.page-login__social-btn img {
     /* Ensure icons are not tiny, but fit the button */
    
    border-radius: 0; /* Keep original shape */
    object-fit: contain;
    filter: none; /* Ensure no filter changes icon color */
}

.page-login__register-text {
    color: #f0f0f0;
    margin-top: 30px;
}

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

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

/* Sections */
.page-login__benefits-section,
.page-login__process-section,
.page-login__security-section,
.page-login__faq-section,
.page-login__cta-section {
    padding: 80px 0;
    position: relative;
}

.page-login__dark-bg {
    background-color: #0a0a0a; /* Dark background as per body style */
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #ffffff; /* Light background for contrast */
    color: #333333;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__section-description,
.page-login__light-bg .page-login__benefit-title,
.page-login__light-bg .page-login__benefit-text,
.page-login__light-bg .page-login__security-title,
.page-login__light-bg .page-login__security-text,
.page-login__light-bg .page-login__faq-title {
    color: #333333;
}

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

.page-login__benefit-card,
.page-login__security-item {
    background: #1a1a1a; /* Slightly lighter dark background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-login__light-bg .page-login__benefit-card,
.page-login__light-bg .page-login__security-item {
    background: #f8f8f8; /* Light background for cards in light sections */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-login__benefit-card:hover,
.page-login__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon,
.page-login__security-icon {
    width: 100%; /* Ensure images are not small icons */
    max-width: 250px;
    height: auto;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    display: block;
    filter: none; /* Ensure no filter changes image color */
}

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

.page-login__benefit-text,
.page-login__security-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-login__light-bg .page-login__benefit-title,
.page-login__light-bg .page-login__security-title {
    color: #26A9E0; /* Brand color on light background */
}

.page-login__light-bg .page-login__benefit-text,
.page-login__light-bg .page-login__security-text {
    color: #555555;
}

.page-login__cta-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.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;
    text-align: center;
}

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

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

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

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

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

.page-login__step-item {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-login__step-number {
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

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

.page-login__step-text {
    color: rgba(255, 255, 255, 0.8);
}

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #262626;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #FFFFFF;
    text-align: left;
}

.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);
    color: #EA7C07;
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

.page-login__faq-answer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.page-login__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

.page-login__faq-answer a:hover {
    text-decoration: underline;
}

.page-login__cta-content {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-heading {
        font-size: 2.2em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }

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

    .page-login__main-heading {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

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

    .page-login__login-form-wrapper {
        padding: 20px;
        margin-top: 20px;
    }

    .page-login__form-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

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

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

    .page-login__cta-bottom,
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-login__benefits-section,
    .page-login__process-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 60px 0;
    }

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

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

    /* Images responsive */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filter changes image color */
    }

    .page-login__benefit-card,
    .page-login__security-item,
    .page-login__step-item,
    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    .page-login__social-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Video responsive (if any) */
    .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;
    }
}

/* Ensure no filter on images globally */
.page-login img {
    filter: none;
}

/* Contrast Fixes */
.page-login__dark-bg {
  color: #ffffff;
}

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

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}