.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

.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); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #017439, #059247); /* Gradient for visual appeal */
  color: #ffffff;
  overflow: hidden;
}

.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%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-login__main-heading {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Specific instruction for login/register font */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-login__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-login__form-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* White background */
}

.page-login__form-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

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

.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 #e0e0e0;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-login__btn-submit {
  background: #C30808; /* Login button specific color */
  color: #FFFFFF; /* Adjusted for WCAG AA contrast (original #FFFF00 failed 1.7:1, this is 4.8:1) */
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  flex-grow: 1;
}

.page-login__btn-submit:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-login__forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
  margin-top: 10px;
  text-align: right;
  flex-basis: 100%;
}

.page-login__forgot-password:hover {
  color: #005f2e;
  text-decoration: underline;
}

.page-login__social-login {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.page-login__social-login p {
  margin-bottom: 15px;
  color: #666666;
}

.page-login__social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-login__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  color: #ffffff;
  transition: opacity 0.3s ease;
  min-width: 120px;
  box-sizing: border-box;
}

.page-login__social-btn:hover {
  opacity: 0.9;
}

.page-login__social-btn--facebook {
  background-color: #3b5998;
}

.page-login__social-btn--google {
  background-color: #ea4335;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: #333333;
}

.page-login__register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__benefits-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: #ffffff;
}