/* style/login.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

:root {
  --primary-color: #0A1931;
  --secondary-color: #E0B400;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #0A1931; /* Using primary color as dark background for sections */
  --border-light: #e0e0e0;
}

.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--bg-light); /* Assuming shared.css body is light */
}

/* Fixed header offset */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first content section */
}

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

/* Hero Section */
.page-login__hero-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-login__hero-content {
  flex: 1;
  text-align: left;
  z-index: 1;
}

.page-login__main-heading {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color); /* Use accent color for main heading */
}

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

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for form background */
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-login__form-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: var(--secondary-color);
  text-align: center;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  font-size: 1em;
  transition: border-color 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: var(--secondary-color);
  outline: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: var(--secondary-color); /* Style checkbox */
}

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

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

.page-login__forgot-password:hover {
  color: var(--text-light);
}

.page-login__login-button {
  width: 100%;
  padding: 14px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-login__login-button:hover {
  background-color: #f0c92e; /* Slightly lighter gold */
  transform: translateY(-2px);
}

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

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

.page-login__register-link:hover {
  color: var(--text-light);
}

.page-login__hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

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

/* Benefits Section */
.page-login__benefits-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 0;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.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: var(--bg-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure images take full width of card */
  height: auto;
  max-height: 200px; /* Limit height to prevent overly tall images */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-login__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__benefit-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* Call to Action Section */
.page-login__cta-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

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

.page-login__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-login__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-light);
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-login__btn-primary:hover {
  background-color: #f0c92e; /* Slightly lighter gold */
  transform: translateY(-2px);
}

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

.page-login__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* FAQ Section */
.page-login__faq-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 0;
}

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