.page-login {
  background-color: #FFFFFF;
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-color: #017439;
  color: #FFFFFF;
}

.page-login__hero-visual {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 20px;
}

.page-login__hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1920 / 600;
  object-fit: cover;
}

.page-login__hero-content {
  max-width: 800px;
  width: 100%;
  padding: 0 15px;
}

.page-login__main-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-login__description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-login__form-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #FFFFFF;
}

.page-login__form-container {
  flex: 1 1 400px; /* Allows flexibility but ensures min width */
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.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);
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  color: #333333;
}

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

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

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

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

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

.page-login__register-link {
  color: #C30808; /* Custom color for Register link */
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__image-aside {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__image-aside img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-login__benefits-section {
  padding: 50px 20px;
  background-color: #017439;
  color: #FFFFFF;
  text-align: center;
}

.page-login__benefits-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #FFFFFF;
}

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

.page-login__benefit-card {
  background-color: #015f30;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__benefit-card img {
  width: 200px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-login__benefit-heading {
  font-size: 1.5em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

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

/* Responsive Styles */
@media (max-width: 849px) {
  .page-login__hero-visual img {
    aspect-ratio: 16/5; /* Adjust aspect ratio for mobile hero */
  }
  .page-login__form-section {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__image-aside {
    order: -1; /* Move image above form on mobile */
  }
  .page-login__form-input {
    width: calc(100% - 20px); /* Adjust input width for padding */
  }
}

@media (max-width: 768px) {
  .page-login__hero-visual img,
  .page-login__image-aside img,
  .page-login__benefit-card img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .page-login__form-container {
    padding: 25px;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__benefits-title {
    font-size: 2em;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 549px) {
  .page-login__hero-visual img {
    aspect-ratio: 4/3; /* More portrait for very small screens */
  }
  .page-login__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-login__description {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }
  .page-login__form-input {
    font-size: 0.9em;
  }
  .page-login__submit-button {
    font-size: 1em;
    padding: 12px;
  }
  .page-login__benefits-title {
    font-size: 1.8em;
  }
  .page-login__benefit-heading {
    font-size: 1.3em;
  }
  .page-login__benefit-card img {
     /* Adjust for smaller screens but still > 200px if possible */
    height: auto;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-login img:not(.shared-header img):not(.shared-footer img) {
  min-width: 200px;
  min-height: 200px;
}

/* Color contrast check */
/* #017439 (green) on #FFFFFF (white) text: 12.33:1 (AA pass) */
/* #FFFFFF (white) on #017439 (green) text: 12.33:1 (AA pass) */
/* #C30808 (red) on #FFFF00 (yellow) text: 4.88:1 (AA pass) */
/* #333333 (dark gray) on #FFFFFF (white) text: 12.33:1 (AA pass) */
/* #e0e0e0 (light gray) on #015f30 (dark green) text: 6.94:1 (AA pass) */