/* ============================================================
   教师注册页 · 与官网统一风格（紫蓝渐变 / 柔光 / 圆角卡片）
   ============================================================ */

.page {
  max-width: 720px;
  padding-top: 34px;
}

/* ---------- 顶部横幅：官网同款流动渐变 + 光斑 ---------- */
.intro {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 58px 30px 52px;
  border-radius: 26px;
  color: #fff;
  margin-bottom: 30px;
  background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
  background-size: 400% 400%;
  animation: registerGradient 16s ease infinite;
  box-shadow: 0 24px 60px rgba(102, 126, 234, 0.35);
}

@keyframes registerGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}

.intro::before {
  width: 220px;
  height: 220px;
  top: -70px;
  right: -40px;
  background: #f093fb;
  animation: registerFloat 11s ease-in-out infinite;
}

.intro::after {
  width: 200px;
  height: 200px;
  bottom: -90px;
  left: -50px;
  background: #4facfe;
  animation: registerFloat 13s ease-in-out -5s infinite;
}

@keyframes registerFloat {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-22px) translateX(14px) scale(1.06); }
}

.intro h1 {
  position: relative;
  z-index: 1;
  margin: 0 auto 14px;
  font-size: clamp(1.7rem, 4.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.intro p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
}

/* ---------- 表单卡片 ---------- */
.form-card {
  border: 1px solid rgba(102, 126, 234, 0.12);
  border-radius: 26px;
  padding: 34px 34px 38px;
  box-shadow: 0 18px 46px rgba(102, 126, 234, 0.14);
}

.form-head {
  text-align: center;
  border-bottom: 1px solid rgba(102, 126, 234, 0.14);
  padding: 0 0 20px;
  margin-bottom: 24px;
}

.form-head h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 8px;
  color: #3e3fae;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.form-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.form-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.field > label {
  color: #3a4a63;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.agree-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #3a4a63;
  font-size: 0.92rem;
  cursor: pointer;
}

.agree-line input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--indigo);
}

.notice {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px dashed #cdd6f5;
  border-radius: 10px;
  background: #f8f9ff;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.7;
}

.notice summary {
  cursor: pointer;
  font-weight: 600;
  color: #4a55b0;
}

.notice p { margin: 8px 0 0; }

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.16);
}

.radio-row .radio input { accent-color: var(--indigo); }

.submit-btn {
  letter-spacing: 0.06em;
  box-shadow: 0 10px 26px rgba(102, 126, 234, 0.42);
}

.feedback.ok {
  background: #e8f7ee;
  color: var(--ok);
}

.feedback.error {
  background: #fdecee;
  color: var(--err);
}

/* ---------- 报名成功页 ---------- */
.page-success {
  max-width: 640px;
}

.success-card {
  text-align: center;
  border: 1px solid rgba(102, 126, 234, 0.12);
  border-radius: 26px;
  padding: 56px 40px 48px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(102, 126, 234, 0.14);
}

.success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc71, #1e9e55);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(30, 158, 85, 0.35);
}

.success-card h1 {
  margin: 0 0 14px;
  color: #3e3fae;
  font-size: 1.7rem;
  font-weight: 800;
}

.success-lead {
  color: var(--ink-soft);
  line-height: 1.9;
  margin: 0 auto 28px;
  max-width: 440px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.success-actions .btn {
  text-decoration: none;
  min-width: 150px;
  padding: 12px 22px;
}

.success-back {
  margin: 24px 0 0;
  font-size: 0.9rem;
}

.success-back a { color: var(--indigo); }

/* ---------- 页脚与官网统一 ---------- */
.footer {
  margin-top: 0;
  padding: 36px 16px 32px;
  background: linear-gradient(135deg, #5250c0, #4a2f83);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer span { opacity: 0.92; }

@media (max-width: 560px) {
  .intro { padding: 42px 20px 38px; border-radius: 20px; }
  .form-card { padding: 24px 18px 28px; border-radius: 20px; }
  .page { padding-top: 24px; }
  .success-card { padding: 40px 20px 34px; border-radius: 20px; }
}
