.register-page {
  width: 100%;
  min-height: 100vh;
  background: var(--page-bg);
  padding-bottom: 40px;
}

.register-header {
  background: #fff;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  font-size: 20px !important;
  padding: 8px !important;
  margin-right: 12px;
}

.register-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  flex: 1;
  text-align: center;
  margin-right: 44px;
}

.register-form-container {
  padding: 24px 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.form-card {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-card .ant-card-head {
  border-bottom: 2px solid var(--brand-color);
  padding: 0 24px;
  min-height: 48px;
}

.form-card .ant-card-head-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding: 12px 0;
}

.form-card .ant-card-body {
  padding: 24px;
  width: 100%;
}

.form-card .ant-form {
  width: 100%;
}

.form-card .ant-form-item {
  width: 100%;
}

.form-card .ant-input,
.form-card .ant-input-password,
.form-card .ant-select {
  width: 100%;
}

/* 移动端适配 */
@media screen and (max-width: 375px) {
  .register-form-container {
    padding: 20px 16px;
  }

  .form-card .ant-card-body {
    padding: 20px 16px;
  }
}

@media screen and (min-width: 768px) {
  .register-form-container {
    padding: 40px;
  }

  .form-card .ant-card-body {
    padding: 32px;
  }
}

.login-link-text {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.login-link {
  color: var(--brand-color);
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
}

.login-link:hover {
  color: var(--brand-color-dark);
}

.register-submit-btn {
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  background: var(--brand-gradient) !important;
  border: none !important;
  color: var(--text-on-brand) !important;
}

.register-submit-btn:hover,
.register-submit-btn:focus {
  background: var(--brand-gradient-hover) !important;
  color: var(--text-on-brand) !important;
}
