.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-login__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand primary color for titles */
}

.page-login__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #017439, #28a745); /* Dark green gradient */
  color: #ffffff; /* White text for dark background */
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-login__main-title {
  font-size: 48px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  background-color: #ffffff; /* White background for form */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  margin: 30px auto 0;
  color: #333333; /* Dark text for form content */
}

.page-login__form-title {
  font-size: 28px;
  margin-bottom: 25px;
  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 #cccccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.page-login__cta-button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__btn-login:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__btn-register {
  background: #017439; /* Brand primary for register */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-login__btn-register:hover {
  background: #005f2e;
  border-color: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__additional-links {
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
}

.page-login__link-forgot, .page-login__link-help {
  color: #017439;
  text-decoration: none;
  margin: 0 10px;
}

.page-login__link-forgot:hover, .page-login__link-help:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #f9f9f9; /* Light background */
  color: #333333;
}

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

.page-login__benefit-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

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

.page-login__benefit-text {
  font-size: 16px;
  color: #555555;
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* White text */
}

.page-login__troubleshoot-section .page-login__section-title,
.page-login__troubleshoot-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__troubleshoot-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark card */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.page-login__troubleshoot-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-login__troubleshoot-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__troubleshoot-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #017439;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
}

.page-login__btn-secondary:hover {
  background: #e0e0e0;
  color: #005f2e;
}

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

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

.page-login__security-text {
  flex: 1;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__security-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23017439"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #555555;
}

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

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: #017439; /* Brand primary color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #017439;
}

.page-login__btn-primary:hover {
  background: #005f2e;
  border-color: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__security-image {
  flex: 1;
  text-align: center;
}

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

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

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

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

.page-login__cta-buttons .page-login__cta-button {
  min-width: 220px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 40px;
  }
  .page-login__description {
    font-size: 18px;
  }
  .page-login__section-title {
    font-size: 28px;
  }
  .page-login__section-description {
    font-size: 16px;
  }
  .page-login__security-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__security-text, .page-login__security-image {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__main-title {
    font-size: 32px;
  }
  .page-login__description {
    font-size: 16px;
  }
  .page-login__login-form-wrapper {
    padding: 30px;
  }
  .page-login__form-title {
    font-size: 24px;
  }
  .page-login__section-title {
    font-size: 24px;
  }
  .page-login__section-description {
    font-size: 15px;
  }
  .page-login__benefits-section, .page-login__troubleshoot-section, .page-login__security-section, .page-login__cta-section {
    padding: 50px 0;
  }
  .page-login__benefits-grid, .page-login__troubleshoot-grid {
    grid-template-columns: 1fr;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__cta-buttons .page-login__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Mobile image and container adaptation */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-login__section, .page-login__card, .page-login__container, .page-login__login-form-wrapper, .page-login__hero-image, .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__security-list li {
    font-size: 15px;
  }
}

/* Ensure buttons are responsive */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__cta-buttons,
.page-login__button-group,
.page-login__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .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,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-login__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}