.page-login {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

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

.page-login__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  min-height: 700px; /* Ensure hero section is large enough */
}

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

.page-login__hero-section .page-login__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__main-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  font-weight: bold;
}

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

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.95); /* Light background for the form for better contrast */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  text-align: left;
  color: #333333; /* Dark text for light background */
}

.page-login__login-card {
  background: transparent; /* Actual card background is handled by wrapper */
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  color: #333333;
}

.page-login__form-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px); /* Adjusted for padding */
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  color: #333333;
  background-color: #f9f9f9;
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

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

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

.page-login__btn-login {
  background-color: #C30808; /* Custom login button color */
  color: #FFFFFF; /* Adjusted for contrast from #FFFF00 to #FFFFFF */
  border: none;
  padding: 15px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__btn-login:hover {
  background-color: #a00606;
}

.page-login__register-text {
  text-align: center;
  margin-top: 20px;
  color: #555555;
}

.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 {
  background-color: #1a1a1a;
  padding: 80px 0;
  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-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark body */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
  width: 250px; /* Display size, matches imageRequirements */
  height: 250px; /* Display size, matches imageRequirements */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

/* How to Login Section */
.page-login__how-to-login-section {
  background-color: #0e0e0e;
  padding: 80px 0;
  text-align: center;
}

.page-login__steps-grid {
  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.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-login__troubleshooting {
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

/* Security Section */
.page-login__security-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-login__security-text-block {
  flex: 1;
  min-width: 300px;
}

.page-login__security-subtitle {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__security-paragraph {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

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

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__security-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #0e0e0e;
  padding: 80px 0;
  color: #ffffff;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  color: #ffffff;
  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 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
  font-weight: bold;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

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

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

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

.page-login__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: #f0f0f0;
}

/* CTA Section */
.page-login__cta-section {
  background-color: #017439; /* Brand color background */
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.page-login__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__cta-section .page-login__section-title {
  color: #ffffff;
}

.page-login__cta-section .page-login__section-description {
  color: #f0f0f0;
}

.page-login__cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
}

.page-login__btn-primary {
  background-color: #C30808; /* Custom login button color */
  color: #FFFFFF; /* Adjusted for contrast */
  border: 2px solid #C30808;
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__hero-description {
    font-size: 1.2em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__benefits-grid, .page-login__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-login__security-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
  }

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

  .page-login__hero-section {
    padding: 80px 15px;
    min-height: 600px;
  }

  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

  .page-login__login-form-wrapper {
    padding: 25px;
  }

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

  .page-login__btn-login {
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

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

  .page-login__benefits-grid, .page-login__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-login__benefit-item,
  .page-login__step-item {
    padding: 25px;
  }

  .page-login__benefit-icon {
    width: 250px; /* Still large, but content will scale it down if needed */
    height: 250px;
  }

  .page-login__security-subtitle {
    font-size: 1.5em;
  }
  
  .page-login__security-paragraph {
    font-size: 1em;
  }

  .page-login__security-img {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-login__faq-question {
    padding: 18px 20px;
    font-size: 1.1em;
  }

  .page-login__faq-title {
    font-size: 1.1em;
  }

  .page-login__faq-answer {
    padding: 10px 20px !important;
  }

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

  /* Mobile specific overrides for images and videos */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Dark background text color consistency */
.page-login__dark-bg {
  background-color: #121212; /* From shared body background */
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #FFFFFF; /* Specific light background for contrast */
  color: #333333;
}

/* Ensure all links inside main content have proper color for contrast */
.page-login a {
  color: #017439; /* Brand color for links */
  text-decoration: none;
}

.page-login a:hover {
  text-decoration: underline;
  color: #005f2c;
}