.page-login {
  font-family: 'Arial', sans-serif;
  background-color: #0a0a0a; /* Body background from shared.css */
  color: #ffffff; /* Light text on dark body background */
}

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

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #017439, #004d2e);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  max-width: 1200px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-login__hero-content {
  z-index: 1;
  position: relative;
  max-width: 800px;
  padding: 20px;
}

.page-login__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow text for H1 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__tagline {
  font-size: clamp(1em, 1.5vw, 1.3em);
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0.9;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-login__btn-primary {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login button text color */
  border: 2px solid #C30808;
  box-shadow: 0 4px 10px rgba(195, 8, 8, 0.4);
}

.page-login__btn-primary:hover {
  background-color: #e01010;
  border-color: #e01010;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register button text color */
  border: 2px solid #FFFF00;
  box-shadow: 0 4px 10px rgba(255, 255, 0, 0.2);
}

.page-login__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808; /* Text color on hover */
  transform: translateY(-2px);
}

.page-login__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #017439;
}

.page-login__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #ffffff;
}

.page-login__login-form-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-login__form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-login__form-illustration {
  flex: 1;
  min-width: 300px;
}

.page-login__form-illustration img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.page-login__form {
  flex: 1;
  max-width: 450px;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3); /* Darker input background */
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
}

.page-login__checkbox:checked {
  background-color: #017439;
  border-color: #017439;
}

.page-login__checkbox:checked::before {
  content: '✔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
}

.page-login__checkbox-label {
  color: #ffffff;
}

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login button text color */
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
  color: #ffffff;
}

.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

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

.page-login__features-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-login__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
}

.page-login__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-login__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for feature titles */
}

.page-login__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #ffffff;
  flex-grow: 1;
}

.page-login__security-info-section {
  padding: 60px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-login__dark-section .page-login__section-title {
  color: #FFFF00; /* Yellow on dark section title */
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1.1em;
  line-height: 1.6;
  display: flex;
  align-items: center;
}

.page-login__security-item::before {
  content: '✓';
  color: #FFFF00; /* Yellow checkmark */
  font-weight: 700;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-login__security-text {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-login__quick-guide-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-login__quick-guide-section .page-login__section-title {
  color: #017439;
}

.page-login__quick-guide-section .page-login__section-description {
  color: #ffffff;
}

.page-login__guide-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  counter-reset: guide-step;
}

.page-login__guide-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  padding: 20px 30px 20px 60px;
  border-radius: 10px;
  font-size: 1.1em;
  line-height: 1.6;
  position: relative;
}

.page-login__guide-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #017439;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.1em;
}

.page-login__guide-item strong {
  color: #FFFF00; /* Yellow for strong text in guide */
}

.page-login__guide-footer-text {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-login__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-login__faq-section .page-login__section-title {
  color: #017439;
}

.page-login__faq-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-login__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: #FFFF00; /* Yellow for FAQ questions */
  position: relative;
}

.page-login__faq-item summary::-webkit-details-marker,
.page-login__faq-item summary::marker {
  display: none;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #ffffff;
}

.page-login__faq-answer p {
  margin: 0;
}

.page-login__faq-cta {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

.page-login__faq-link {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

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

.page-login__cta-bottom-section {
  padding: 60px 0;
  background-color: #017439;
  text-align: center;
  color: #ffffff;
}

.page-login__cta-bottom-section .page-login__section-title {
  color: #FFFF00;
}

.page-login__cta-bottom-section .page-login__section-description {
  color: #ffffff;
}

/* General image styling for content areas */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles for mobile */
@media (max-width: 1024px) {
  .page-login__form-wrapper {
    flex-direction: column;
    padding: 30px;
  }

  .page-login__form-illustration {
    order: -1;
    margin-bottom: 30px;
  }

  .page-login__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-login__hero-image {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-login__main-title {
    font-size: 2.5em;
  }

  .page-login__tagline {
    font-size: 1em;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 通用图片与容器 */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__container,
  .page-login__section,
  .page-login__card,
  .page-login__form-wrapper,
  .page-login__features-grid,
  .page-login__security-list,
  .page-login__guide-list,
  .page-login__faq-list,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-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;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 其他内容模块 */
  .page-login__section-title {
    font-size: 2em;
  }

  .page-login__section-description,
  .page-login__feature-text,
  .page-login__security-item,
  .page-login__security-text,
  .page-login__guide-item,
  .page-login__guide-footer-text,
  .page-login__faq-answer {
    font-size: 1em;
  }

  .page-login__form-wrapper {
    padding: 20px;
  }

  .page-login__features-grid {
    grid-template-columns: 1fr;
  }

  .page-login__feature-card {
    padding: 20px;
  }

  .page-login__faq-item summary {
    font-size: 1.05em;
    padding: 15px;
  }

  .page-login__faq-answer {
    padding: 0 15px 15px 15px;
  }
}