.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Body background is white */
}

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

/* Hero Section */
.page-login__hero-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
  background-color: #017439; /* Brand primary color for hero section background */
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
  padding: 40px 20px;
  max-width: 800px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__form-wrapper {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 30px auto 0 auto;
  text-align: left;
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.page-login__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login button font color */
  border: none;
  flex-grow: 1;
}

.page-login__btn-login:hover {
  background-color: #a30606;
}

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

.page-login__link:hover {
  text-decoration: underline;
  color: #00562e;
}

.page-login__link-forgot {
  font-size: 0.9rem;
  color: #666666;
}

.page-login__link-forgot:hover {
  color: #333333;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  color: #666666;
}

.page-login__register-prompt .page-login__link-register {
  color: #C30808;
  font-weight: 600;
}

.page-login__register-prompt .page-login__link-register:hover {
  color: #a30606;
}

/* General Section Styling */
.page-login__section {
  padding: 60px 0;
}

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

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

.page-login__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-login__section-description--light {
  color: #f0f0f0;
}

.page-login__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

/* Why Login Section */
.page-login__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.page-login__feature-title {
  font-size: 1.3rem;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__feature-item p {
  color: #555555;
}

/* Guide Section */
.page-login__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__step-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.page-login__step-title {
  font-size: 1.25rem;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__step-item p {
  color: #555555;
}

/* Troubleshooting Section */
.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-login__troubleshooting-list li {
  background-color: #f9f9f9;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 5px solid #017439;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__list-title {
  font-size: 1.2rem;
  color: #017439;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__troubleshooting-list li p {
  color: #555555;
}

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

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__security-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__security-title--light {
  color: #ffffff;
}

.page-login__security-text--light {
  color: #f0f0f0;
}

.page-login__link--light {
  color: #FFFF00;
}

.page-login__link--light:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Mobile Access Section */
.page-login__mobile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__mobile-text {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-login__mobile-image-wrap {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-login__mobile-subtitle {
  font-size: 1.25rem;
  color: #017439;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__btn-download {
  background-color: #017439;
  color: #ffffff;
  border: none;
  margin-top: 25px;
}

.page-login__btn-download:hover {
  background-color: #00562e;
}

/* FAQ Section */
.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-login__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  padding: 20px 25px;
  font-size: 1.2rem;
  color: #017439;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin: 0;
  background-color: #eaf7ed; /* Light green for FAQ question background */
}

.page-login__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-login__faq-answer p {
  padding-bottom: 20px;
  color: #555555;
}

/* No accordion JS needed per instructions, but for visual consistency, I'll simulate expanded state */
/* .page-login__faq-item.active .page-login__faq-answer { max-height: 2000px; padding-top: 15px; } */
/* .page-login__faq-item.active .page-login__faq-question::after { content: '-'; } */
.page-login__faq-question::after {
  content: '+';
  font-weight: bold;
  font-size: 1.5rem;
  color: #017439;
}

/* Call to Action Bottom Section */
.page-login__cta-bottom {
  padding: 60px 0;
  text-align: center;
}

.page-login__cta-content {
  max-width: 800px;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-login__btn-primary {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  border: none;
}

.page-login__btn-primary:hover {
  background-color: #a30606;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #C30808; /* Text color matching primary button */
  border: 2px solid #C30808;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #a30606;
  border-color: #a30606;
}

/* Image Styling */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-login__figure {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
}

.page-login__figure img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__figcaption {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #666666;
}

.page-login__figcaption--light {
  color: #f0f0f0;
}

/* Ensure all images meet min size and are not small icons */
.page-login img:not(.page-login__hero-image) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 1. 顶区标题 + 双 CTA */
  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }
}