.page-login {
  color: #ffffff; /* Body background is dark, so light text for main page content */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #121212; /* Fallback, though body background is from shared */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Default desktop padding */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  min-height: 600px;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.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-section .page-login__container {
  position: relative;
  z-index: 2;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.95); /* Light background for the form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 40px auto 0;
  color: #333333; /* Dark text for light background */
}

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

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

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

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

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

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

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

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

.page-login__remember-me input {
  margin-right: 8px;
}

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

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

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

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

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

/* General Section Styling */
.page-login__section {
  padding: 80px 0;
  text-align: center;
}

.page-login__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

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

.page-login__dark-bg .page-login__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-login__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

/* Why Login Section */
.page-login__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark bg */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px; /* Ensure images are not tiny icons */
}

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

.page-login__feature-item .page-login__feature-title {
  color: #ffffff;
}

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

/* Guide Section */
.page-login__guide-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-login__guide-section .page-login__section-title {
  color: #017439;
}

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

.page-login__step-item {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333333;
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  display: inline-block;
  background: #e6ffe6;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
}

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

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

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

.page-login__issue-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333333;
}

.page-login__issue-card .page-login__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #017439;
}

.page-login__issue-card .page-login__card-text {
  font-size: 1em;
  margin-bottom: 25px;
  color: #555555;
}

/* Security Section */
.page-login__security-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-login__security-section .page-login__section-title {
  color: #017439;
}

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

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

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

.page-login__security-list {
  list-style: disc inside;
  padding-left: 20px;
  color: #555555;
}

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

.page-login__security-list strong {
  color: #017439;
}

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Diversity Section */
.page-login__diversity-section .page-login__section-title {
  color: #ffffff;
}

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

.page-login__diversity-item {
  background: rgba(255, 255, 255, 0.1); /* Light card on dark bg */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-login__diversity-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-login__diversity-item .page-login__diversity-title {
  color: #ffffff;
}

.page-login__diversity-text {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-login__faq-section .page-login__section-title {
  color: #017439;
}

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

.page-login__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #fcfcfc;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
  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;
  color: #555555;
  font-size: 1em;
  line-height: 1.6;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

.page-login__cta-section .page-login__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  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;
}

.page-login__btn-primary {
  background-color: #C30808;
  color: #ffffff;
  border: 2px solid #C30808;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 500px;
    padding: 100px 0 50px; /* Adjust padding for mobile */
  }

  .page-login__main-title {
    font-size: 2.2em;
  }

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

  .page-login__login-form-wrapper {
    padding: 30px 20px;
    margin: 30px auto 0;
  }

  .page-login__form-title {
    font-size: 1.8em;
  }

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

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

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

  .page-login__features-grid,
  .page-login__guide-steps,
  .page-login__issues-grid,
  .page-login__diversity-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__security-content {
    flex-direction: column;
  }

  .page-login__security-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px;
  }

  /* Mobile image 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-wrapper,
  .page-login__security-image-wrapper,
  .page-login__diversity-item {
    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 header offset on mobile */
  }

  .page-login__faq-answer {
    padding: 0 15px;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }

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

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

  .page-login__form-title {
    font-size: 1.5em;
  }

  .page-login__form-input {
    padding: 10px 12px;
  }

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

  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
}