/* style/login.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07; /* Custom color for login button */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0; /* Using primary color for dark background sections */
  --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(--background-light); /* Default body background */
}

/* Header offset for main content */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Or a solid color */
  color: var(--text-dark); /* Text color for hero, depends on background blend */
}

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

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Constrain hero image width */
}

.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: 2.5em;
  margin-bottom: 15px;
  color: var(--text-dark); /* Ensure contrast on light background blend */
  font-weight: bold;
}

.page-login__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't push it out */
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__cta-button--login {
  background: var(--login-button-color); /* Custom login button color */
  color: var(--text-light);
  border: 2px solid var(--login-button-color);
}

.page-login__cta-button--login:hover {
  background: #d66b06; /* Slightly darker for hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-login__cta-button--register:hover {
  background: #208cb9; /* Slightly darker for hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__section-title {
  font-size: 2em;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__form-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-login__form {
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  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: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: var(--text-dark);
  background-color: var(--secondary-color);
}

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

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

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

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

.page-login__checkbox-label {
  color: var(--text-dark);
}

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

.page-login__forgot-password:hover {
  color: #208cb9; /* Slightly darker for hover */
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background: var(--login-button-color);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background: #d66b06; /* Slightly darker for hover */
  transform: translateY(-2px);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  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 {
  color: #208cb9; /* Slightly darker for hover */
}

.page-login__security-section {
  padding: 80px 0;
  background-color: var(--background-dark); /* Dark section uses primary color */
  color: var(--text-light); /* Light text for dark background */
}

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

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

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

.page-login__security-text {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
}

.page-login__security-text p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-login__security-features {
  list-style: disc;
  margin-left: 20px;
  color: var(--text-light);
}

.page-login__security-features li {
  margin-bottom: 8px;
}

.page-login__recovery-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-login__recovery-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__recovery-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-login__recovery-card h3 {
  font-size: 1.5em;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-login__recovery-card p {
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-login__recovery-link {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__recovery-link:hover {
  background: #208cb9; /* Slightly darker for hover */
}

.page-login__new-user-cta {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-login__new-user-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-login__new-user-text {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
}

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

.page-login__new-user-text p {
  margin-bottom: 25px;
  color: var(--text-light);
}

.page-login__new-user-image {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

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

.page-login__cta-button--register-large {
  background: var(--login-button-color); /* Use login button color for prominence */
  color: var(--text-light);
  border: 2px solid var(--login-button-color);
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: bold;
}

.page-login__cta-button--register-large:hover {
  background: #d66b06; /* Slightly darker for hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

/* FAQ容器样式 */
.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff; /* Ensure light background for FAQ item */
  border: 1px solid #e0e0e0;
}