/* style/login.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --login-button-bg: #C30808;
  --login-button-text: #FFFF00;
  --register-button-bg: #017439;
  --register-button-text: #ffffff;
  --link-color: #017439;
  --border-color: #e0e0e0;
  --card-bg: #ffffff;
  --section-bg-dark: #017439;
  --section-bg-light: #ffffff;
}

.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light backgrounds */
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

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

.page-login__section {
  padding: 60px 0;
  text-align: center;
}

.page-login__light-bg {
  background-color: var(--section-bg-light);
  color: var(--text-dark);
}

.page-login__dark-bg {
  background-color: var(--section-bg-dark);
  color: var(--text-light);
}

.page-login__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from section background */
}

.page-login__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit color from section background */
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  position: relative;
  overflow: hidden;
}

.page-login__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
}

.page-login__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
  z-index: 1;
}

.page-login__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--primary-color);
}

.page-login__description {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-login__login-form-wrapper {
  flex: 1 1 40%;
  min-width: 300px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: left;
  z-index: 1;
  position: relative;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

.page-login__form-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.page-login__form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

.page-login__form-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.page-login__btn-login {
  display: inline-block;
  padding: 14px 25px;
  background-color: var(--login-button-bg);
  color: var(--login-button-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  flex: 1;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login:hover {
  background-color: #A00707; /* Darker red */
  transform: translateY(-2px);
}

.page-login__btn-register {
  display: inline-block;
  padding: 14px 25px;
  background-color: var(--register-button-bg);
  color: var(--register-button-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  flex: 1;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-register:hover {
  background-color: #005F2E; /* Darker green */
  transform: translateY(-2px);
}

.page-login__form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 15px;
}

.page-login__forgot-password,
.page-login__need-help {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.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.1;
}

/* Benefits Section */
.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

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

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills width */
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__benefit-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-login__benefit-text {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Guide Section */
.page-login__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 50px;
}

.page-login__guide-item {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
}

.page-login__guide-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-login__guide-image {
  flex: 1 1 40%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__guide-item div {
  flex: 1 1 55%;
}

.page-login__guide-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__guide-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-login__note {
  margin-top: 40px;
  font-size: 16px;
  font-style: italic;
  color: var(--text-dark);
}

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

.page-login__troubleshooting-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: var(--text-light);
}

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

.page-login__troubleshooting-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}