.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 handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-login__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff; /* Light text for dark background */
}

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

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

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  gap: 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #017439 0%, #004d26 100%); /* Green gradient */
  color: #ffffff;
}

.page-login__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-login__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Login/Register font custom color */
}

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

.page-login__login-form-wrapper {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
}

.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 #017439;
  border-radius: 5px;
  background-color: #f0f0f0;
  color: #333333;
  box-sizing: border-box;
}

.page-login__login-button {
  background-color: #C30808; /* Custom Login color */
  color: #FFFF00; /* Custom Login font color */
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
}

.page-login__login-button:hover {
  background-color: #a00606;
}

.page-login__forgot-password {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #f0f0f0;
  text-decoration: none;
  font-size: 0.9em;
}

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

.page-login__register-cta {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-login__register-cta p {
  margin-bottom: 15px;
}

.page-login__register-button {
  background-color: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register font color */
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
}

.page-login__register-button:hover {
  background-color: #a00606;
}

.page-login__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-login__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-login__card {
  background-color: #f8f8f8; /* Light background for cards on light section */
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-login__card p {
  margin-bottom: 20px;
}

.page-login__btn-text {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: auto;
}

.page-login__btn-text:hover {
  color: #004d26;
  text-decoration: underline;
}

.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.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-login__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #FFFF00; /* Custom font color for steps */
  color: #017439;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom font color */
}

.page-login__guide-tip {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: #f0f0f0;
}

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

.page-login__trouble-item {
  background-color: #f8f8f8;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__trouble-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #C30808; /* Use login/register red for attention */
  font-weight: bold;
}

.page-login__troubleshooting-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__security-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__list-title {
  font-size: 1.3em;
  color: #FFFF00; /* Custom font color */
  margin-bottom: 10px;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.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;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-login__faq-list {
  margin-top: 40px;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00; /* Custom font color */
  list-style: none;
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
}

.page-login__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__faq-more {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__faq-more a {
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__cta-final {
  text-align: center;
  padding: 60px 20px;
}

.page-login__cta-content {
  max-width: 900px;
}

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

.page-login__large-button {
  padding: 18px 35px;
  font-size: 1.2em;
  min-width: 200px;
}

.page-login__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 50px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Common button styles */
.page-login__btn-primary {
  background-color: #017439;
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-login__btn-primary:hover {
  background-color: #004d26;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
}

.page-login__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #004d26;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding: 60px 15px;
    flex-direction: column;
  }

  .page-login__hero-title {
    font-size: 2.5em;
  }

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__hero-image-container {
    position: relative;
    height: 250px;
    margin-top: 30px;
  }

  .page-login__hero-image {
    opacity: 0.5;
  }

  .page-login__container {
    padding: 30px 15px;
  }

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

  .page-login__section-intro {
    font-size: 0.95em;
  }

  .page-login__grid, .page-login__guide-steps, .page-login__troubleshooting-grid, .page-login__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__card, .page-login__step-item, .page-login__trouble-item, .page-login__benefit-card {
    padding: 20px;
  }

  .page-login__card-title, .page-login__step-title, .page-login__trouble-title, .page-login__list-title, .page-login__benefit-title {
    font-size: 1.3em;
  }

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

  .page-login__login-button, .page-login__register-button {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-login__security-list li {
    padding: 15px;
  }

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

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

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

  .page-login__large-button {
    font-size: 1.1em;
    padding: 15px 25px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Mobile responsive for images */
  .page-login img {
    max-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__hero-content,
  .page-login__hero-image-container,
  .page-login__cta-content,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile responsive for buttons */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    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-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-login__login-form {
    padding-left: 0;
    padding-right: 0;
  }

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