/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

/* Section titles and descriptions */
.page-login__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter for descriptions */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background-color: #1a1a1a; /* Dark background for hero, contrasting with body #111 */
    color: #ffffff;
}

.page-login__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.page-login__hero-title {
    font-size: 3.2em;
    color: #26A9E0; /* Brand color for emphasis */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    max-width: 700px;
    margin: 0 auto;
}

.page-login__form-wrapper {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for form background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto; /* Center the form */
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__form-group {
    text-align: left;
}

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.page-login__form-input:focus {
    border-color: #26A9E0;
    outline: none;
}

.page-login__form-actions {
    display: flex;
    flex-direction: column; /* Stack buttons on mobile by default */
    gap: 15px;
    margin-top: 10px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: block;
    padding: 14px 25px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

.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__forgot-password {
    color: #26A9E0;
    text-decoration: none;
    font-size: 0.95em;
    margin-top: 10px;
    display: block;
    text-align: center;
}

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

.page-login__hero-image-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-login__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Light background sections */
.page-login__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for contrast */
    padding: 60px 0;
}

.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__feature-title,
.page-login__light-bg .page-login__feature-text,
.page-login__light-bg .page-login__forgot-password {
    color: #333333; /* Ensure dark text on light background */
}

/* Dark background sections */
.page-login__dark-bg {
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff; /* Light text for contrast */
    padding: 60px 0;
}

.page-login__dark-bg .page-login__section-title {
    color: #26A9E0; /* Brand color for titles on dark background */
}

.page-login__dark-bg .page-login__section-description {
    color: #f0f0f0;
}

.page-login__dark-bg .page-login__guide-steps a {
    color: #26A9E0;
}
.page-login__dark-bg .page-login__guide-steps a:hover {
    text-decoration: underline;
}


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

.page-login__benefit-card {
    background-color: #f8f8f8; /* Light card background on light section */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-login__benefit-icon {
    width: 200px; /* Min size 200x200 */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__benefit-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for titles */
}

.page-login__benefit-text {
    font-size: 1em;
    color: #555555;
}

/* Guide Section */
.page-login__guide-steps {
    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.08); /* Semi-transparent for dark section */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-login__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__feature-card {
    background-color: #f8f8f8; /* Light card background on light section */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-login__feature-icon {
    width: 200px; /* Min size 200x200 */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__feature-text {
    font-size: 1em;
    color: #555555;
}

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent for dark section */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.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;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    margin-left: 20px;
    width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03);
}

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

.page-login__faq-text {
    font-size: 1em;
    color: #cccccc;
    margin: 0;
    text-align: left;
}

/* CTA Section */
.page-login__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping for mobile */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__container {
        padding: 0 15px; /* Adjust padding for mobile */
    }

    /* Fixed header spacing for hero section on mobile */
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-login__hero-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__form-wrapper {
        padding: 30px;
    }
    .page-login__form-actions {
        flex-direction: column; /* Stack buttons vertically */
    }

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

    .page-login__benefits-grid,
    .page-login__guide-steps,
    .page-login__security-features {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 25px;
    }

    .page-login__benefit-card,
    .page-login__step-item,
    .page-login__feature-card {
        padding: 25px;
    }

    .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;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Container responsiveness */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__form-wrapper,
    .page-login__benefits-grid,
    .page-login__guide-steps,
    .page-login__security-features,
    .page-login__faq-list,
    .page-login__cta-buttons {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific overrides for sections that might not have padding by default */
    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__guide-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-login__hero-content,
    .page-login__hero-image-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure no filter is used on images */
.page-login img {
    filter: none !important;
}

/* Color contrast enforcement */
/* For light-bg sections, titles and text should be dark */
.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__feature-title,
.page-login__light-bg .page-login__feature-text,
.page-login__light-bg .page-login__forgot-password {
  color: #333333;
}

/* For dark-bg sections, titles and text should be light */
.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg .page-login__step-title,
.page-login__dark-bg .page-login__step-text,
.page-login__dark-bg .page-login__faq-title,
.page-login__dark-bg .page-login__faq-text,
.page-login__dark-bg .page-login__form-label,
.page-login__dark-bg .page-login__form-input {
  color: #ffffff;
}

/* Specific for brand color on dark background */
.page-login__dark-bg .page-login__section-title {
    color: #26A9E0; /* Brand color for titles on dark background */
}
.page-login__dark-bg .page-login__faq-toggle {
    color: #26A9E0;
}
.page-login__dark-bg .page-login__step-number {
    color: #26A9E0;
}
.page-login__dark-bg .page-login__login-form a {
    color: #26A9E0;
}
.page-login__dark-bg .page-login__login-form a:hover {
    text-decoration: underline;
}

/* Ensure card backgrounds are distinct */
.page-login__benefit-card {
  background-color: #f0f0f0; /* Light grey for cards on white background */
}
.page-login__feature-card {
  background-color: #f0f0f0; /* Light grey for cards on white background */
}
.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Transparent dark for cards on dark background */
}
.page-login__faq-question {
  background-color: rgba(255, 255, 255, 0.05);
}
.page-login__faq-item.active .page-login__faq-answer {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Button color contrast already defined */
.page-login__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
}
.page-login__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border-color: #26A9E0;
}