/* ==========================================
   Setla MY — 로그인·첫 접속 관문 공통 (2026-09-30)
   로그인·휴대폰 인증·비밀번호 찾기는 화면마다 자기 스타일을 갖고 있다(브랜드 화면).
   여기엔 그 화면들이 함께 쓰는 새 부품만 둔다: 단계 표시 · 비밀번호 보기 단추 · 비밀번호 규칙 표시,
   그리고 비밀번호 관문·필수정보 관문이 쓰는 같은 모양의 틀.
   ========================================== */

/* ── 단계 표시: 1 휴대폰 인증 · 2 비밀번호 · 3 필수정보 (utils/riderOnboardingSteps) ── */
.gate-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; }
.gate-step { flex: 1; min-width: 0; }
.gate-step i { display: block; height: 4px; border-radius: 2px; background: #E5E7EB; margin-bottom: 6px; }
.gate-step span { display: flex; align-items: center; gap: 3px; font-size: 0.66rem; font-weight: 600; color: #9CA3AF; white-space: nowrap; }
.gate-step.is-done i { background: #10B981; }
.gate-step.is-done span { color: #047857; }
.gate-step.is-now i { background: #191F28; }
.gate-step.is-now span { color: #191F28; font-weight: 800; }

/* ── 비밀번호 보기 단추 (public/js/gate.js 가 입력 칸을 감싸 붙인다) ── */
.pw-wrap { display: block; position: relative; }
.pw-wrap input { padding-right: 46px !important; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 8px; color: #6B7280; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pw-eye:focus-visible { outline: 2px solid #191F28; outline-offset: -2px; }
.pw-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── 비밀번호 규칙 표시 — 입력하는 동안 충족 여부 ── */
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pw-rule { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 600; background: #F2F4F6; color: #9CA3AF; }
.pw-rule.is-ok { background: #ECFDF5; color: #047857; }
.pw-match { font-size: 0.68rem; font-weight: 600; margin-top: 6px; min-height: 1em; }
.pw-match.is-ok { color: #047857; }
.pw-match.is-bad { color: #EF4444; }

/* ── 관문 틀 — 비밀번호 관문·필수정보 관문 (휴대폰 인증 화면과 같은 모양) ── */
body.gate-body { background: #191F28; min-height: 100vh; display: flex; flex-direction: column; }
.gate-brand { flex: 0 0 auto; padding: 48px 24px 28px; text-align: center; }
.gate-brand img { display: block; width: auto; height: 26px; margin: 0 auto 18px; }
.gate-brand-sub { font-size: 0.7rem; font-weight: 400; color: #C0C5CE; letter-spacing: 4px; text-transform: uppercase; }
.gate-sheet { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 24px 24px 0 0; padding: 32px 22px 40px; }
.gate-title { font-size: 1.3rem; font-weight: 800; color: #191F28; margin-bottom: 6px; }
.gate-desc { font-size: 0.82rem; color: #9CA3AF; margin-bottom: 22px; line-height: 1.55; }
.gate-desc strong { color: #191F28; }
.gate-out { text-align: center; margin-top: 18px; }
.gate-out a { font-size: 0.8rem; color: #6B7280; text-decoration: underline; }

/* ── 잠시 후 다시 — 요청 제한(429) 안내 (2026-09-30) ── */
.wait-sheet { display: flex; flex-direction: column; }
.wait-icon { width: 56px; height: 56px; border-radius: 16px; background: #FFFBEB; color: #B45309; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.wait-icon .icon { width: 28px; height: 28px; }
.wait-timer { border: 1px solid #E5E7EB; border-radius: 12px; background: #F8F9FA; padding: 16px; text-align: center; margin-bottom: 18px; }
.wait-timer-label { font-size: 0.72rem; font-weight: 600; color: #9CA3AF; margin-bottom: 4px; }
.wait-timer-value { font-size: 1.9rem; font-weight: 900; color: #191F28; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.wait-timer-value small { font-size: 0.9rem; font-weight: 700; color: #6B7280; margin-left: 2px; }
.wait-timer-done { font-size: 1.1rem; font-weight: 800; color: #10B981; line-height: 1.4; }
.wait-back { display: block; text-align: center; text-decoration: none; margin-bottom: 0; }
.wait-back[aria-disabled="true"] { background: #E5E7EB; color: #9CA3AF; cursor: default; pointer-events: none; }
.wait-why { margin-top: auto; padding-top: 22px; font-size: 0.72rem; color: #9CA3AF; line-height: 1.55; }
