/**
 * VerificationCodeDialog - 6칸 OTP 인증코드 입력 공통 스타일
 * 회원가입, 비밀번호 재설정, 이메일 변경, 2FA 등에서 재사용
 * Apple/Google OTP 스타일 참고, 사이트 디자인 시스템에 맞게 적용
 */

/* 루트: 여백·중앙 정렬 */
.verification-code-dialog.vcd-root {
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

.verification-code-dialog .vcd-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.verification-code-dialog .vcd-description {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #666;
}

.verification-code-dialog .vcd-email {
  font-size: 0.9375rem;
  color: #333;
  word-break: break-all;
}

/* 6칸 OTP 입력 행 */
.verification-code-dialog .vcd-otp-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.verification-code-dialog .vcd-otp-box {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.verification-code-dialog .vcd-otp-box:hover {
  border-color: #bbb;
}

.verification-code-dialog .vcd-otp-box:focus {
  outline: none;
  border-color: #57b846;
  box-shadow: 0 0 0 3px rgba(87, 184, 70, 0.2);
}

.verification-code-dialog .vcd-otp-box.vcd-otp-filled {
  border-color: #57b846;
  background-color: rgba(87, 184, 70, 0.06);
}

.verification-code-dialog .vcd-otp-row.vcd-otp-error .vcd-otp-box {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.04);
}

.verification-code-dialog .vcd-otp-row.vcd-otp-error .vcd-otp-box:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.verification-code-dialog .vcd-otp-label,
.verification-code-dialog .vcd-email-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.verification-code-dialog .vcd-timer {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  margin: 1rem 0 0.25rem;
}

.verification-code-dialog .vcd-timer.expired {
  color: #dc3545;
}

.verification-code-dialog .vcd-btn-resend:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.verification-code-dialog .vcd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.verification-code-dialog .vcd-btn-cancel {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
}

.verification-code-dialog .vcd-btn-cancel:hover {
  text-decoration: underline;
}

.verification-code-dialog .vcd-success {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* 모바일: 입력칸 크기·간격 조정 */
@media (max-width: 480px) {
  .verification-code-dialog .vcd-otp-row {
    gap: 0.35rem;
    margin: 0.75rem 0 0;
  }

  .verification-code-dialog .vcd-otp-box {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    font-size: 1.125rem;
  }
}

/* Bootstrap .sr-only 호환 (없을 경우) */
.verification-code-dialog .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
