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

/* Variables */
:root {
  --page-register-primary-color: #1A202C;
  --page-register-secondary-color: #FFD700;
  --page-register-text-light: #ffffff;
  --page-register-text-dark: #333333;
  --page-register-bg-light: #ffffff;
  --page-register-bg-dark: #1A202C; /* Use brand primary color for dark sections */
  --page-register-border-color: #e0e0e0;
  --page-register-form-input-bg: rgba(255, 255, 255, 0.08);
  --page-register-form-input-border: rgba(255, 255, 255, 0.2);
}

/* Base styles for the register page content */
.page-register {
  color: var(--page-register-text-light); /* Default light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

/* Container for consistent content width */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section styling */
.page-register__hero-section,
.page-register__form-section,
.page-register__why-register-section,
.page-register__guide-section,
.page-register__verification-section,
.page-register__privacy-section,
.page-register__faq-section,
.page-register__cta-section,
.page-register__video-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden; /* Prevent horizontal scroll from internal elements */
}

/* Fixed header offset for the first content section */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

/* Background colors based on design */
.page-register__dark-bg {
  background-color: var(--page-register-bg-dark);
  color: var(--page-register-text-light);
}

.page-register__light-bg {
  background-color: var(--page-register-bg-light);
  color: var(--page-register-text-dark);
}

/* Titles and Descriptions */
.page-register__main-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--page-register-secondary-color); /* Highlight with gold */
  text-align: center;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Inherit from section, ensuring contrast */
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-register__btn-primary {
  background-color: var(--page-register-secondary-color);
  color: var(--page-register-bg-dark); /* Dark text on gold button */
  border: 2px solid var(--page-register-secondary-color);
}

.page-register__btn-primary:hover {
  background-color: #e6c200; /* Darken secondary color */
  border-color: #e6c200;
}

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

.page-register__btn-secondary:hover {
  background-color: var(--page-register-secondary-color);
  color: var(--page-register-bg-dark);
}

.page-register__hero-content {
  text-align: center;
  margin-bottom: 40px;
  z-index: 1;
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-register__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: none; /* No filter for color change */
}

.page-register__hero-section .page-register__btn-primary {
  margin-top: 20px;
}

/* Form Section */
.page-register__registration-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: var(--page-register-bg-dark); /* Dark background for form */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--page-register-text-light);
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--page-register-form-input-border);
  border-radius: 5px;
  background-color: var(--page-register-form-input-bg);
  color: var(--page-register-text-light);
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__form-input:focus {
  outline: none;
  border-color: var(--page-register-secondary-color);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.page-register__checkbox-group {
  display: flex;
  align-items: flex-start;
}

.page-register__form-checkbox {
  margin-right: 10px;
  margin-top: 4px;
}

.page-register__form-checkbox + .page-register__form-label {
  font-weight: normal;
  line-height: 1.4;
}

.page-register__text-link {
  color: var(--page-register-secondary-color);
  text-decoration: none;
}

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

.page-register__submit-button {
  width: 100%;
  margin-top: 20px;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 20px;
  color: var(--page-register-text-dark); /* Dark text for light background section */
}

/* Why Register Section */
.page-register__why-register-section .page-register__section-description {
  color: var(--page-register-text-light);
}

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

.page-register__feature-card {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: var(--page-register-bg-light); /* Light background for cards */
  color: var(--page-register-text-dark);
}

.page-register__feature-card:hover {
  transform: translateY(-10px);
}

.page-register__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* No filter for color change */
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-register__feature-card img {
  width: 100%; /* Make card images fill card width */
  height: 200px; /* Or a fixed height, or aspect ratio, but ensure it's not small */
  object-fit: cover; /* Cover the area */
  margin-bottom: 15px;
}

.page-register__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-register-bg-dark); /* Use primary brand color for titles on light cards */
}

.page-register__feature-text {
  font-size: 1em;
  line-height: 1.7;
}

/* Video Section */
.page-register__video-section {
  text-align: center;
  padding: 80px 0;
}