/* style/login.css */

/* --- General Page Styles --- */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Matching body background from shared.css */
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #017439; /* Primary brand color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Slightly lighter than white for contrast */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__highlight {
  color: #FFFF00; /* Highlight color for keywords */
  font-weight: bold;
}

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  text-align: center;
  color: #FFFFFF;
  padding: 60px 20px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

.page-login__hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5); /* Slightly darker background for content */
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Primary title color */
  line-height: 1.2;
}

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

/* --- Login Form Container --- */
.page-login__login-form-container {
  background-color: #FFFFFF; /* Custom background for login form */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.page-login__form-title {
  font-size: 1.8em;
  color: #017439; /* Dark text for light background */
  margin-bottom: 25px;
  text-align: center;
}

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

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #333333; /* Dark text for light background */
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333; /* Input text color */
  background-color: #f8f8f8;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #017439; /* Accent color for checkbox */
}

.page-login__checkbox-label {
  color: #555555; /* Darker text for light background */
}

.page-login__forgot-password {
  color: #017439; /* Link color */
  text-decoration: none;
}

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

.page-login__submit-button {
  background-color: #C30808; /* Login button custom color */
  color: #FFFF00; /* Login button font custom color */
  padding: 14px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background-color: #a30606;
}

.page-login__register-cta {
  text-align: center;
  margin-top: 25px;
  color: #555555;
  font-size: 0.95em;
}

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

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

/* --- Benefits Section --- */
.page-login__benefits-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff; /* Light text for dark background */
}

.page-login__benefit-icon {
  width: 100px; /* Example size, adjust as needed */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px; /* Added for image style */
}

.page-login__card-title {
  font-size: 1.5em;
  color: #FFFF00; /* Highlight title color */
  margin-bottom: 15px;
}

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

/* --- Guide Section --- */
.page-login__guide-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #1a1a1a; /* Ensure consistency with body background */
}

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

.page-login__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  color: #ffffff;
}

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

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

.page-login__guide-image {
  margin-top: 50px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- Security Section --- */
.page-login__security-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-login__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-login__feature-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 15px;
}

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

.page-login__security-image {
  margin-top: 50px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

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

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-title {
  font-size: 1.2em;
  color: #017439;
  margin: 0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
  padding-top: 0; /* Adjust padding for visual flow */
}

.page-login__faq-text {
  margin: 0;
  font-size: 1em;
}

/* --- CTA Section --- */
.page-login__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Primary brand color for strong CTA */
  color: #ffffff;
}

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

.page-login__cta-button {
  padding: 15px 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; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure text breaks */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-login__btn-primary {
  background-color: #C30808; /* Login button custom color */
  color: #FFFF00; /* Login button font custom color */
  border: 2px solid #C30808;
}

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

.page-login__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Text color for secondary button */
  border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #017439;
  border-color: #017439;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-section {
    min-height: 600px;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.95em;
  }
  .page-login__login-form-container {
    padding: 20px;
    max-width: 90%;
  }
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__security-features {
    grid-template-columns: 1fr;
  }
  .page-login__faq-title {
    font-size: 1.1em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__cta-button {
    width: 100%; /* Full width buttons on mobile */
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Mobile image and video responsive adaptation */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form-container,
  .page-login__hero-content,
  .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;
  }

  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header on mobile */
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__hero-section {
    min-height: 500px;
  }
}

/* --- Color Contrast & Accessibility --- */
/* Body background is #1a1a1a (dark), so default text is #ffffff */
.page-login {
  color: #ffffff;
}

/* Specific elements on light background */
.page-login__login-form-container {
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light background */
}
.page-login__login-form-container .page-login__form-label,
.page-login__login-form-container .page-login__checkbox-label,
.page-login__login-form-container .page-login__register-cta {
  color: #333333; /* Ensure dark text on white background */
}
.page-login__login-form-container .page-login__forgot-password,
.page-login__login-form-container .page-login__register-link {
  color: #017439; /* Brand color links */
}

/* Buttons */
.page-login__submit-button,
.page-login__btn-primary {
  background-color: #C30808; /* Custom login/primary button background */
  color: #FFFF00; /* Custom login/primary button text */
}

.page-login__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Brand color text for secondary button */
}

/* Dark sections with light text */
.page-login__dark-section {
  background-color: #1a1a1a; /* Explicitly dark background */
  color: #ffffff;
}

.page-login__hero-overlay {
  background: rgba(0, 0, 0, 0.7);
}
.page-login__hero-content {
  background: rgba(0, 0, 0, 0.5);
}

.page-login__cta-section {
  background-color: #017439; /* Primary brand color background */
  color: #ffffff;
}

/* FAQ question titles */
.page-login__faq-title {
  color: #017439; /* Brand color for titles in FAQ */
}

/* Ensure all links have appropriate contrast */
.page-login a {
  color: #FFFF00; /* Default link color in dark sections */
  text-decoration: none;
}
.page-login a:hover {
  text-decoration: underline;
}

/* Override for specific sections with different backgrounds */
.page-login__faq-answer a,
.page-login__guide-section a {
  color: #FFFF00; /* Links in these sections */
}

/* Ensure images do not have filters */
.page-login img {
  filter: none;
}