.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #FFFFFF; /* Matches body background var(--secondary-color) which is #FFFFFF */
}

.page-login__section {
  padding: 60px 20px;
}

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

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

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

/* Hero/Login Section */
.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);
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #ffffff;
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

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

.page-login__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-login__subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__login-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 450px;
  z-index: 3;
  text-align: left;
  margin-bottom: 40px;
  color: #333333;
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #cccccc;
  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: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: 25px;
  font-size: 15px;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.page-login__checkbox-label {
  color: #555555;
  cursor: pointer;
}

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

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

.page-login__login-button {
  width: 100%;
  padding: 16px;
  background-color: #C30808;
  color: #FFFF00;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__login-button:hover {
  background-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 16px;
  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: #005f2e;
  text-decoration: underline;
}

.page-login__hero-image {
  width: 100%;
  margin-top: 40px;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-login__benefit-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-login__benefit-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__benefit-title a {
  color: #017439;
  text-decoration: none;
}

.page-login__benefit-title a:hover {
  text-decoration: underline;
}

.page-login__benefit-text {
  font-size: 16px;
  color: #555555;
}

/* Security Section */
.page-login__security-section {
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #ffffff;
}

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-description {
  color: #ffffff;
}

.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

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

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

.page-login__feature-text {
  font-size: 15px;
  color: #f0f0f0;
}

.page-login__feature-text a {
  color: #f0f0f0;
  text-decoration: underline;
}

.page-login__feature-text a:hover {
  color: #ffffff;
}

.page-login__security-tip {
  text-align: center;
  margin-top: 50px;
  font-size: 16px;
  color: #f0f0f0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

/* Guide Section */
.page-login__guide-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-login__step-item {
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-login__step-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-login__step-text {
  font-size: 16px;
  color: #555555;
}

.page-login__step-text a {
  color: #017439;
  text-decoration: none;
}

.page-login__step-text a:hover {
  text-decoration: underline;
}

.page-login__troubleshoot-title {
  font-size: 28px;
  color: #017439;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 25px;
}

.page-login__troubleshoot-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  font-size: 16px;
  color: #555555;
}

.page-login__troubleshoot-list li {
  background: #f0f0f0;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid #017439;
}

.page-login__troubleshoot-list li strong {
  color: #017439;
}

/* Why Choose Section */
.page-login__why-choose-section {
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #ffffff;
}

.page-login__why-choose-section .page-login__section-title,
.page-login__why-choose-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__why-choose-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

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

.page-login__why-choose-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-login__why-choose-text a {
  color: #f0f0f0;
  text-decoration: underline;
}

.page-login__why-choose-text a:hover {
  color: #ffffff;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #f8f8f8;
  color: #333333;
}

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

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

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

.page-login__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-login__faq-question h3 a {
  color: #333333;
  text-decoration: none;
}

.page-login__faq-question h3 a:hover {
  text-decoration: underline;
}

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

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

.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.3s ease;
  padding: 0 25px;
  opacity: 0;
  font-size: 16px;
  color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f0f0f0;
  border-radius: 0 0 10px 10px;
}

.page-login__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-login__faq-answer p:last-child {
  padding-bottom: 0;
}

.page-login__faq-answer a {
  color: #017439;
  text-decoration: none;
}

.page-login__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 40px;
  }
  .page-login__subtitle {
    font-size: 18px;
  }
  .page-login__section-title {
    font-size: 28px;
  }
  .page-login__login-card {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  .page-login__subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-login__login-card {
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
  }
  .page-login__card-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .page-login__form-input {
    padding: 12px 15px;
    font-size: 15px;
  }
  .page-login__login-button {
    padding: 14px;
    font-size: 18px;
  }
  .page-login__hero-image img {
    border-radius: 8px;
  }
  .page-login__section {
    padding: 40px 15px;
  }
  .page-login__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-login__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid,
  .page-login__security-features,
  .page-login__guide-steps,
  .page-login__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-item,
  .page-login__feature-item,
  .page-login__step-item,
  .page-login__why-choose-item {
    padding: 20px;
    border-radius: 8px;
  }
  .page-login__benefit-title,
  .page-login__feature-title,
  .page-login__step-title,
  .page-login__why-choose-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .page-login__benefit-text,
  .page-login__feature-text,
  .page-login__step-text,
  .page-login__why-choose-text {
    font-size: 14px;
  }
  .page-login__troubleshoot-title {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-login__troubleshoot-list li {
    padding: 12px 15px;
    font-size: 14px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-question h3 {
    font-size: 16px;
  }
  .page-login__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px !important;
  }
  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__login-button,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 30px;
  }
  .page-login__section-title {
    font-size: 22px;
  }
  .page-login__card-title {
    font-size: 20px;
  }
  .page-login__hero-section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-login__login-card {
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-login__section-description {
    font-size: 15px;
  }
}

/* Color Contrast Fixes (if needed) */
.page-login__dark-bg {
  color: #ffffff;
}

.page-login__light-bg {
  color: #333333;
}

.page-login__login-button {
  background-color: #C30808;
  color: #FFFF00;
}

.page-login__login-button:hover {
  background-color: #a30606;
}

.page-login__forgot-password-link,
.page-login__register-link {
  color: #017439;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #017439;
}

.page-login__troubleshoot-list li strong {
  color: #017439;
}

.page-login__benefit-title a,
.page-login__step-text a,
.page-login__faq-answer a {
  color: #017439;
}

.page-login__feature-text a,
.page-login__why-choose-text a {
  color: #f0f0f0;
}