/* 从 register.html 提取的样式 */
.container {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background: #0056b3;
}

.links {
  margin-top: 20px;
  text-align: center;
}

.links a {
  color: #007bff;
  text-decoration: none;
  margin: 0 10px;
}

.links a:hover {
  text-decoration: underline;
}

.message-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 16px 24px;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  border-radius: 4px;
  font-size: 16px;
  z-index: 1000;
  display: none;
  max-width: 80%;
  word-break: break-word;
  text-align: center;
  white-space: pre-line;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.captcha-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-container input {
  flex: 1;
}

.email-code-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.email-code-container input {
  flex: 1;
}

.email-code-container button {
  width: auto;
  white-space: nowrap;
  padding: 10px 20px;
}

.captcha-container img {
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.refresh-captcha {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #007bff;
  cursor: pointer;
  font-size: 14px;
  margin-left: 8px;
}

.refresh-captcha:hover {
  color: #0056b3;
}

.refresh-icon {
  fill: currentColor;
}

.password-requirements {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
  background-color: #f8f9fa;
  padding: 12px;
  border-radius: 4px;
}

.password-requirements li {
  margin-bottom: 4px;
}

.password-requirements li.invalid {
  color: #dc3545;
}

.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.success-modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 80%;
}

.success-modal-content h2 {
  margin-bottom: 20px;
  color: #28a745;
} 