.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Body background is white */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-login__main-title {
  font-size: 42px;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-login__section-title {
  font-size: 36px;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 16px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

/* Hero/Login Section */
.page-login__hero-section {
  padding: 60px 0;
  background: #f9f9f9; /* Light background for the hero section */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.page-login__hero-content {
  text-align: center;
  margin-bottom: 40px;
}

.page-login__login-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-login__card-title {
  font-size: 28px;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-login__form-label {
  display: block;
  font-size: 15px;
  color: #555555;
  margin-bottom: 8px;
  font-weight: 600;
}

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input::placeholder {
  color: #aaaaaa;
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 14px;
}

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__remember-me input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #017439;
}

.page-login__remember-me label {
  color: #555555;
}

.page-login__login-button {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__login-button:hover {
  background-color: #a30707;
  transform: translateY(-2px);
}

.page-login__register-cta {
  text-align: center;
  margin-top: 30px;
  font-size: 15px;
  color: #555555;
}

.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Features Section */
.page-login__features-section {
  padding: 80px 0;
  background: #017439; /* Dark background */
  color: #ffffff; /* White text for dark background */
}

.page-login__features-section .page-login__section-title {
  color: #ffffff;
}

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-login__feature-item p {
  font-size: 15px;
  color: #e0e0e0;
}

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

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

.page-login__security-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-login__security-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-login__security-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-login__security-item p {
  font-size: 15px;
  color: #555555;
}

/* Register Banner */
.page-login__register-banner {
  padding: 60px 0;
  background: #017439; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-login__register-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-login__register-banner .page-login__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-login__register-banner p {
  font-size: 18px;
  max-width: 800px;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.page-login__register-button {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__register-button:hover {
  background-color: #a30707;
  transform: translateY(-2px);
}

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

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #ffffff;
  color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* Ensure content fits */
  padding: 20px !important;
  opacity: 1;
  background: #ffffff;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.page-login__faq-question:hover {
  background: #005a2e;
  border-color: #005a2e;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

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

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

.page-login__blog-post {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-login__blog-image {
  width: 100%;
  height: 220px; /* Fixed height for blog images */
  object-fit: cover;
  display: block;
}

.page-login__blog-title {
  font-size: 22px;
  font-weight: bold;
  padding: 20px 20px 10px;
  color: #017439;
  line-height: 1.3;
}

.page-login__blog-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__blog-title a:hover {
  color: #C30808;
}

.page-login__blog-excerpt {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 15px;
}

.page-login__read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  padding: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-login__read-more:hover {
  color: #C30808;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 38px;
  }
  .page-login__section-title {
    font-size: 32px;
  }
  .page-login__login-card {
    max-width: 400px;
  }
  .page-login__features-grid,
  .page-login__security-points,
  .page-login__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__container {
    padding: 15px;
  }
  .page-login__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-login__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-login__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-login__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-login__hero-section,
  .page-login__features-section,
  .page-login__security-section,
  .page-login__register-banner,
  .page-login__faq-section,
  .page-login__blog-section {
    padding: 40px 0;
  }
  .page-login__login-card {
    padding: 25px;
  }
  .page-login__card-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .page-login__form-group {
    margin-bottom: 20px;
  }
  .page-login__form-input {
    padding: 12px 15px;
    font-size: 15px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
  }
  .page-login__forgot-password {
    margin-bottom: 10px;
  }
  .page-login__remember-me {
    margin-top: 10px;
  }
  .page-login__login-button,
  .page-login__register-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 14px 20px;
    font-size: 17px;
  }
  .page-login__register-banner p {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-login__faq-question {
    padding: 15px;
  }
  .page-login__faq-question h3 {
    font-size: 16px;
  }
  .page-login__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }
  .page-login__blog-image {
    height: 180px;
  }
  .page-login__blog-title {
    font-size: 19px;
    padding: 15px 15px 8px;
  }
  .page-login__blog-excerpt,
  .page-login__read-more {
    font-size: 14px;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensure all images are responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-card,
  .page-login__features-grid,
  .page-login__security-points,
  .page-login__blog-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__features-grid,
  .page-login__security-points,
  .page-login__blog-grid {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 26px;
  }
  .page-login__section-title {
    font-size: 22px;
  }
  .page-login__login-card {
    margin: 0;
    border-radius: 8px;
  }
  .page-login__card-title {
    font-size: 20px;
  }
  .page-login__form-options {
    align-items: center;
  }
  .page-login__forgot-password {
    margin-bottom: 0;
  }
  .page-login__remember-me {
    margin-top: 10px;
  }
  .page-login__features-grid,
  .page-login__security-points,
  .page-login__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-login__feature-icon,
  .page-login__security-icon {
    width: 60px;
    height: 60px;
  }
}