/* ═══════════════════════════════════════════════
   동네보험 — reset-password.css  v1
   비밀번호 찾기/재설정 페이지
   global.css 위에서 동작
   ═══════════════════════════════════════════════ */

/* ── 메인 컨테이너 ── */
.reset-main {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  min-height: calc(100vh - 200px);
}

/* ── 스텝 헤더 ── */
.reset-header {
  margin-bottom: 28px;
}
.reset-header__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  transition: color 0.2s;
}
.reset-header__back:hover { color: var(--text-primary); }

.reset-header__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.reset-header__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── 스텝 인디케이터 ── */
.reset-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.reset-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.reset-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  transition: all 0.3s;
  flex-shrink: 0;
}
.reset-step.active .reset-step__num {
  background: var(--primary);
  color: #fff;
}
.reset-step.done .reset-step__num {
  background: #22C55E;
  color: #fff;
}
.reset-step__label {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  transition: color 0.3s;
}
.reset-step.active .reset-step__label { color: var(--text-primary); font-weight: 600; }
.reset-step.done .reset-step__label { color: #22C55E; }

.reset-step__line {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 8px;
  transition: background 0.3s;
}
.reset-step.done + .reset-step__line,
.reset-step__line.done { background: #22C55E; }

/* ── 스텝 패널 ── */
.reset-panel {
  display: none;
}
.reset-panel.active {
  display: block;
  animation: resetEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes resetEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 공통 입력 ── */
.reset-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.reset-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.reset-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.reset-input.success { border-color: #22C55E; }

.reset-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.reset-input-group .reset-input { flex: 1; }

.reset-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
  min-height: 16px;
  line-height: 1.5;
}
.reset-hint.error { color: #EF4444; }
.reset-hint.success { color: #22C55E; }

/* ── Rate Limit 안내 ── */
.reset-rate-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.reset-rate-info svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── 버튼 ── */
.reset-btn {
  flex-shrink: 0;
  padding: 0 18px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.reset-btn:hover { background: var(--primary-dark); }
.reset-btn:disabled { background: var(--border); color: var(--text-tertiary); cursor: not-allowed; }

.reset-btn--full {
  width: 100%;
  height: 50px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 16px;
}

.reset-btn--outline {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.reset-btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

/* ── 타이머 ── */
.reset-timer {
  font-size: 13px;
  color: #EF4444;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── 쿨다운 카운트다운 ── */
.reset-cooldown {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
}
.reset-cooldown strong {
  color: var(--primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── 비밀번호 입력 ── */
.reset-pw-wrap {
  position: relative;
  margin-bottom: 8px;
}
.reset-pw-wrap .reset-input { padding-right: 44px; }
.reset-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  color: var(--text-tertiary);
}
.reset-pw-toggle:hover { color: var(--text-secondary); }

.reset-pw-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 12px;
}
.reset-pw-bar { display: flex; gap: 3px; flex: 1; }
.reset-pw-bar span {
  height: 3px;
  flex: 1;
  background: var(--border-light);
  border-radius: 2px;
  transition: background 0.3s;
}
.reset-pw-bar.level-1 span:nth-child(1) { background: #EF4444; }
.reset-pw-bar.level-2 span:nth-child(-n+2) { background: #F59E0B; }
.reset-pw-bar.level-3 span:nth-child(-n+3) { background: #22C55E; }
.reset-pw-bar.level-4 span { background: #22C55E; }
.reset-pw-text { font-size: 11px; font-weight: 500; white-space: nowrap; }
.reset-pw-text.level-1 { color: #EF4444; }
.reset-pw-text.level-2 { color: #F59E0B; }
.reset-pw-text.level-3, .reset-pw-text.level-4 { color: #22C55E; }

/* ── 완료 화면 ── */
.reset-complete {
  text-align: center;
  padding: 32px 0;
}
.reset-complete__icon { margin-bottom: 16px; }
.reset-complete__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.reset-complete__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── 체크 애니메이션 ── */
.check-draw {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.6s 0.3s ease forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ═══════════════════════════════════════
   PC Responsive (768px+)
   ═══════════════════════════════════════ */
@media (min-width: 768px) {
  body { background: var(--bg-secondary); }
  .reset-main {
    max-width: 460px;
    padding: 40px 36px 80px;
    background: var(--bg);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    min-height: calc(100vh - 160px);
  }
  .footer { max-width: 100%; }
}