:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --login-button-bg: #C30808;
  --login-button-text: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Matches body default white */
}

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

/* Hero Section - Login Form */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
  background-color: var(--secondary-color); /* Light background */
  text-align: center;
}

.page-login__login-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 500px;
  margin: 0 auto 40px auto;
  border: 1px solid var(--border-color);
  text-align: left;
}

.page-login__main-title {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

.page-login__description {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 30px;
  text-align: center;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark);
}

.page-login__input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: #a0a0a0;
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  font-size: 14px;
}

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

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

.page-login__submit-button {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: var(--login-button-bg); /* Custom color #C30808 */
  color: var(--login-button-text); /* Custom color #FFFF00 */
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* For responsive buttons */
  word-wrap: break-word; /* For responsive buttons */
  text-align: center;
  text-decoration: none;
}

.page-login__submit-button:hover {
  background-color: #a30606; /* Slightly darker red */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  color: var(--text-dark);
}

.page-login__register-link {
  color: var(--login-button-bg); /* Custom color #C30808 */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__image-container {
  margin-top: 40px;
  text-align: center;
}

.page-login__image-container img {
  width: 100%;
  height: auto;
  max-width: 1000px; /* Adjust based on image size */
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

/* General Section Styles */
.page-login__section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-login__section-description {
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
}

/* Dark Section Styling */
.page-login__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.page-login__dark-section .page-login__section-title {
  color: var(--text-light);
}

.page-login__dark-section .page-login__section-description {
  color: var(--text-light);
}

.page-login__dark-section .page-login__benefit-item h3,
.page-login__dark-section .page-login__security-item h3,
.page-login__dark-section .page-login__app-text h2,
.page-login__dark-section .page-login__app-text p {
  color: var(--text-light);
}

/* Light Section Styling */
.page-login__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 60px 0;
}

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

.page-login__benefit-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark section */
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-login__dark-section .page-login__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-login__benefit-item img {
  width: 100%;
  height: auto;
  max-width: 200px; /* Smaller for icons/features */
  margin-bottom: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-light); /* For dark section */
}

.page-login__benefit-text {
  font-size: 15px;
  color: var(--text-light); /* For dark section */
}

/* 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: var(--secondary-color);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.page-login__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-login__security-item img {
  width: 100%;
  height: auto;
   /* Smaller for icons/features */
  margin-bottom: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.page-login__security-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__security-text {
  font-size: 15px;
  color: var(--text-dark);
}

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

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

.page-login__troubleshooting-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-login__troubleshooting-text {
  font-size: 15px;
  color: var(--text-dark);
}

.page-login__support-cta {
  text-align: center;
  margin-top: 50px;
}

.page-login__support-cta p {
  font-size: 18px;
  margin-bottom: 25px;
  color: var(--text-dark);
}

/* App Download Section */
.page-login__app-download-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-login__app-text {
  flex: 1;
}

.page-login__app-text .page-login__section-title {
  text-align: left;
  color: var(--text-light);
}

.page-login__app-text .page-login__section-description {
  text-align: left;
  color: var(--text-light);
  margin-left: 0;
}

.page-login__app-image {
  flex: 1;
  text-align: right;
}

.page-login__app-image img {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

/* CTA Button Base Styles */
.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* For responsive buttons */
  word-wrap: break-word; /* For responsive buttons */
}

.page-login__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-login__btn-primary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
  border-color: #005f2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.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;
  padding: 0 15px;
  opacity: 0;
}