/* 验证码登录：验证码输入行、滑块拼图验证 */
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; min-width: 0; }
.code-btn { flex-shrink: 0; min-width: 104px; white-space: nowrap; }
.code-btn:disabled { color: var(--faint); }

.capt { display: grid; gap: 12px; user-select: none; -webkit-user-select: none; }
.cap-img { position: relative; width: 100%; aspect-ratio: 300 / 160; border-radius: 10px; overflow: hidden; background: var(--hover); }
.cap-img img { display: block; width: 100%; height: 100%; pointer-events: none; }
.cap-img .cap-piece { position: absolute; left: 0; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); will-change: transform; }
.cap-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

.cap-track { position: relative; height: 44px; border-radius: 99px; background: var(--hover); border: 1px solid var(--border); touch-action: none; }
.cap-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.cap-knob {
  position: absolute; left: 0; top: -1px; width: 52px; height: 44px; border-radius: 99px; border: 0; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent-2), var(--accent)); color: var(--accent-text); cursor: grab; touch-action: none;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 35%, transparent);
}
.cap-knob svg { transform: rotate(90deg); }
.cap-knob:active { cursor: grabbing; }
.cap-tip { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 52px; font-size: 13px; color: var(--muted); pointer-events: none; }
.cap-tip[hidden] { display: none; }
.cap-foot { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.cap-msg { flex: 1; font-size: 13px; color: var(--muted); }
.cap-msg.bad { color: var(--danger); }
.capt.checking .cap-knob { opacity: .6; cursor: wait; }
.capt.shake .cap-img { animation: cap-shake .35s; }
@keyframes cap-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .capt.shake .cap-img { animation: none; } }

/* 我的账户：手机号 */
.phone-box { display: grid; gap: 10px; max-width: 420px; }

/* 登录页里像链接一样的按钮（忘记密码、返回登录） */
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-size: 13px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.forgot { justify-self: end; margin-top: -4px; }
