/* ============================================================
   感觉训练系统 — 注册 / 登录样式
   ============================================================ */

/* ── 页面容器 ── */
.ob-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 24px 20px 40px;
}

.ob-page-form {
  padding-top: 20px;
}

/* ── IP 图片 ── */
.ob-ip-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.ob-ip-img {
  display: block;
  width: auto;
  height: 160px;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.15s ease, transform 0.15s ease;
  filter: drop-shadow(0 8px 20px rgba(139, 92, 246, 0.18));
}

.ob-ip-float {
  animation: obIpFloat 3s ease-in-out infinite;
}

.ob-ip-small {
  height: 100px;
  width: auto;
  margin-bottom: 4px;
}

/* ── IP 气泡提示 ── */
.ob-ip-bubble {
  position: relative;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(240,230,255,0.90));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(167,139,250,0.35);
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #5B21B6;
  box-shadow: 0 4px 14px rgba(139,92,246,0.14);
  animation: obBubblePop 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
  pointer-events: none;
  max-width: 160px;
  line-height: 1.4;
  text-align: center;
}

.ob-ip-bubble-large {
  font-size: 13px;
  max-width: 180px;
}

@keyframes obBubblePop {
  from { opacity: 0; transform: scale(0.7) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── IP 装饰浮动图标 ── */
.ob-ip-deco {
  position: absolute;
  font-size: 18px;
  pointer-events: none;
  animation: obDecoFloat 2.5s ease-in-out infinite;
}

.ob-ip-deco-1 { top: 10px;  left: -22px; animation-delay: 0s; font-size: 16px; }
.ob-ip-deco-2 { top: 30px;  right: -20px; animation-delay: 0.6s; font-size: 14px; }
.ob-ip-deco-3 { bottom: 20px; left: -18px; animation-delay: 1.2s; font-size: 15px; }

@keyframes obDecoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-5px) rotate(8deg); }
}

@keyframes obIpFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Step 1：Hero 区 ── */
.ob-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 28px;
  gap: 8px;
}

@keyframes obBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.ob-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #5B21B6;
  letter-spacing: 0.04em;
}

.ob-hero-subtitle {
  font-size: 15px;
  color: #7C6FAA;
  text-align: center;
  line-height: 1.7;
}

/* ── 特性列表 ── */
.ob-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.ob-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.08);
}

.ob-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(167,139,250,0.12);
  border-radius: 12px;
}

.ob-feature-name {
  font-size: 14px;
  font-weight: 700;
  color: #3B1F7A;
  margin-bottom: 2px;
}

.ob-feature-desc {
  font-size: 12px;
  color: #7C6FAA;
  line-height: 1.5;
}

/* ── Step 2/3：顶部 Logo ── */
.ob-step-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  gap: 4px;
}

.ob-step-title {
  font-size: 22px;
  font-weight: 800;
  color: #3B1F7A;
}

.ob-step-desc {
  font-size: 14px;
  color: #7C6FAA;
}

/* ── Tab 切换 ── */
.ob-tab-bar {
  display: flex;
  width: 100%;
  background: rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(139,92,246,0.08);
}

.ob-tab {
  flex: 1;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: #9B8AC4;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ob-tab-active {
  background: linear-gradient(135deg, #A78BFA, #C084FC);
  color: #fff;
  box-shadow: 0 3px 12px rgba(139,92,246,0.28);
}

/* ── 表单区 ── */
.ob-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.ob-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-field-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #5B21B6;
  padding-left: 2px;
}

/* ── 输入框 ── */
.ob-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 500;
  color: #3B1F7A;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(167, 139, 250, 0.3);
  border-radius: 14px;
  outline: none;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.07);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.ob-input:focus {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.10);
}

.ob-input::placeholder {
  color: #C4B5E8;
  font-weight: 400;
}

/* ── 密码框（带眼睛按钮）── */
.ob-password-wrap {
  position: relative;
}

.ob-input-password {
  padding-right: 48px;
}

.ob-eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

/* ── 年级格子 ── */
.ob-grade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 28px;
}

.ob-grade-btn {
  padding: 18px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #5B21B6;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(167, 139, 250, 0.25);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.07);
}

.ob-grade-btn:active {
  transform: scale(0.96);
}

.ob-grade-selected {
  background: linear-gradient(135deg, #A78BFA, #C084FC);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

/* ── 主按钮 ── */
.ob-primary-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #A78BFA 0%, #C084FC 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.32);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.02em;
}

.ob-form-btn {
  margin-top: 4px;
}

.ob-primary-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.22);
}

.ob-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── 步骤指示点 ── */
.ob-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.ob-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.25);
  transition: all 0.2s;
}

.ob-dot-active {
  width: 24px;
  border-radius: 4px;
  background: #A78BFA;
}
