/* ==========================================================
   滑块人机验证组件
   从左滑到右，记录轨迹点 [x, y, t]，提交给后端判定
   ========================================================== */

.yx-slider {
  position: relative;
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: var(--ew-surface-2, #1d232c);
  border: 1px solid var(--ew-border, #262c36);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.yx-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(38, 166, 154, .18);
  transition: width .12s linear;
}

.yx-slider.is-done .yx-slider-fill {
  background: rgba(38, 166, 154, .28);
}

.yx-slider-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ew-text-2, #8a95a5);
  pointer-events: none;
  letter-spacing: .5px;
  transition: opacity .2s;
}

.yx-slider.is-done .yx-slider-text {
  color: var(--ew-primary, #26a69a);
  font-weight: 500;
}

.yx-slider-btn {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ew-primary, #26a69a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: grab;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(38, 166, 154, .35);
  transition: background .2s;
}

.yx-slider-btn:active {
  cursor: grabbing;
}

.yx-slider.is-done .yx-slider-btn {
  background: var(--ew-ok, #2ea043);
  cursor: default;
}

.yx-slider.is-fail .yx-slider-btn {
  background: #e5534b;
}

.yx-slider.is-fail .yx-slider-text {
  color: #e5534b;
}

/* 发送按钮与验证码输入行 */
.yx-code-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.yx-code-row .ew-input {
  flex: 1;
  min-width: 0;
}

.yx-code-btn {
  flex: 0 0 auto;
  min-width: 108px;
  padding: 0 14px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--ew-border, #262c36);
  background: var(--ew-surface-2, #1d232c);
  color: var(--ew-primary, #26a69a);
  font-size: 13px;
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
}

.yx-code-btn:hover:not(:disabled) {
  border-color: var(--ew-primary, #26a69a);
}

.yx-code-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* 页脚备案 */
.ew-footer-icp {
  text-align: center;
  font-size: 12px;
  opacity: .6;
  padding: 14px 0 6px;
}

.ew-footer-icp a {
  color: inherit;
  text-decoration: none;
}

.ew-footer-icp a:hover {
  text-decoration: underline;
}
