.page-login {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above text */
  align-items: center;
  text-align: center;
  padding: 10px 0 40px; /* Small top padding, larger bottom padding */
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of the image wrapper */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 500px; /* Ensure image itself also respects max height */
}

.page-login__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-login__main-title {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F2FFF6; /* Custom Text Main */
}

.page-login__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
}

.page-login__form-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align to top to prevent vertical stretching */
  min-height: calc(100vh - 200px); /* Ensure it takes up enough space, adjust as needed */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-login__login-card {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-login__card-title {
  font-size: 2em;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-login__card-description {
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
  font-size: 1em;
}

.page-login__login-form {
  text-align: left;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #F2FFF6; /* Custom Text Main */
  font-weight: 600;
  font-size: 0.95em;
}

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 8px;
  background-color: #0A4B2C; /* Deep Green for input background */
  color: #F2FFF6; /* Custom Text Main */
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #A7D9B8; /* Custom Text Secondary */
  opacity: 0.7;
}

.page-login__form-input:focus {
  border-color: #57E38D; /* Custom Glow */
  outline: none;
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 15px; /* Space between items */
}

.page-login__forgot-password-link {
  color: #A7D9B8; /* Custom Text Secondary */
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #57E38D; /* Custom Glow */
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 25px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping initially */
  word-wrap: break-word; /* Allow wrapping if forced by max-width */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #F2FFF6; /* Custom Text Main */
  border: none;
  box-shadow: 0 4px 10px rgba(34, 199, 104, 0.4);
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(34, 199, 104, 0.6);
}

.page-login__register-prompt {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #1E3A2A; /* Custom Divider */
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 0.95em;
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Custom Glow */
  border: 2px solid #57E38D; /* Custom Glow */
}

.page-login__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(87, 227, 141, 0.2);
}

.page-login__benefits-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green for this section */
  border-top: 1px solid #2E7A4E; /* Custom Border */
}

.page-login__section-title {
  font-size: 2.2em;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 50px;
  font-weight: 700;
}

.page-login__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__benefit-item {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 100%; /* Ensure images are responsive within their cards */
  height: auto;
  max-height: 200px; /* Max height for benefit images */
  object-fit: contain; /* Contain to show full image, not crop */
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__benefit-description {
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 0.95em;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__login-card {
    padding: 30px;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__form-input {
    padding: 12px 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    padding: 12px 20px;
    font-size: 0.95em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__benefits-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .page-login__benefit-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }
  .page-login__hero-image-wrapper {
    max-height: 300px; /* Smaller image on mobile */
  }
  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: 300px;
  }
  .page-login__hero-content {
    padding: 0 15px;
  }
  .page-login__main-title {
    font-size: 1.8em; /* Smaller H1 on mobile */
    margin-bottom: 10px;
  }
  .page-login__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Form Section */
  .page-login__form-section {
    padding: 40px 15px;
    min-height: auto; /* Reset min-height for mobile */
  }
  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .page-login__login-card {
    padding: 25px;
    border-radius: 8px;
    max-width: 100%;
  }
  .page-login__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
  }
  .page-login__card-description {
    font-size: 0.9em;
    margin-bottom: 25px;
  }
  .page-login__form-group {
    margin-bottom: 20px;
  }
  .page-login__form-label {
    font-size: 0.9em;
  }
  .page-login__form-input {
    padding: 10px 15px;
    font-size: 0.95em;
  }
  .page-login__form-actions {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Space between stacked buttons */
    align-items: stretch; /* Stretch to full width */
  }
  .page-login__forgot-password-link {
    order: 2; /* Move forgot password link below login button */
    text-align: center;
    width: 100%; /* Take full width */
    font-size: 0.85em;
  }
  .page-login__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 0.95em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    order: 1; /* Login button first */
  }
  .page-login__register-prompt {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.9em;
  }
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 0.95em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Benefits Section */
  .page-login__benefits-section {
    padding: 50px 15px;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-login__benefits-list {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-login__benefit-item {
    padding: 20px;
  }
  .page-login__benefit-icon {
    max-height: 150px;
  }
  .page-login__benefit-title {
    font-size: 1.3em;
  }
  .page-login__benefit-description {
    font-size: 0.9em;
  }

  /* General image and container responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Override default container padding for form section to allow card to stretch */
  .page-login__form-section .page-login__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}