:root {
  --primary-color: #26A9E0; /* 淡蓝色 */
  --secondary-color: #FFFFFF; /* 白色 */
  --login-button-color: #EA7C07; /* 登录按钮橙色 */
  --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: var(--secondary-color); /* Body background is white from shared.css */
}

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

.page-login__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-login__intro-text,
.page-login__description,
.page-login__post-form-text,
.page-login__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

/* Hero 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: 10px; /* Small top padding, body handles header offset */
  background-color: var(--primary-color); /* A background color for the section */
}

.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%; /* Ensure it takes full width within its parent */
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

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

.page-login__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* H1 font size with clamp */
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__description {
  color: var(--text-light);
  font-size: 1.2rem;
  max-width: 900px;
  margin-bottom: 40px;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 20px;
  background-color: var(--secondary-color);
}

.page-login__form {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px;
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  color: var(--text-dark);
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap; /* For mobile */
}

.page-login__remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 10px; /* For mobile spacing */
}

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

.page-login__checkbox-label {
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
}

.page-login__forgot-password-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  margin-bottom: 10px; /* For mobile spacing */
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: var(--login-button-color); /* Custom login button color */
  color: var(--text-light);
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box; /* Crucial for button max-width */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary:hover {
  background-color: #d16e06; /* Darken on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1rem;
  color: var(--text-dark);
}

.page-login__register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 20px;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light);
}

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-card img {
  width: 100%;
  max-width: 600px; /* Ensure images scale down */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum height for content images */
}

.page-login__benefit-title {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-description {
  font-size: 1rem;
  color: var(--text-light);
}

/* Trust Section */
.page-login__trust-section {
  padding: 60px 20px;
  background-color: var(--secondary-color);
}

.page-login__trust-points {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__trust-item {
  background: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--primary-color);
}

.page-login__trust-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__trust-item p {
  font-size: 1rem;
  color: var(--text-dark);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 20px;
  background-color: var(--secondary-color);
}

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--text-light);
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f5f5f5;
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}
.page-login__faq-answer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-image img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 10px !important; /* Mobile small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-image img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-login__description {
    font-size: 1rem;
  }
}