@charset "UTF-8";
html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.rc {
  position: relative;
  width: min(360px, 92vw);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.rc__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
}

.rc__orb--1 {
  width: 140px;
  height: 140px;
  left: -30px;
  top: -20px;
  background: radial-gradient(circle, #2f6df6, transparent 70%);
  opacity: 0.16;
  animation: rc-drift 8s ease-in-out infinite;
}

.rc__orb--2 {
  width: 120px;
  height: 120px;
  right: -20px;
  bottom: -30px;
  background: radial-gradient(circle, #2f6df6, transparent 70%);
  opacity: 0.12;
  animation: rc-drift 7s ease-in-out infinite reverse;
}

@keyframes rc-drift {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16px, -12px);
  }
}
.rc__title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: clamp(17px, 5vw, 21px);
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
}

.rc__sub {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1.5;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.6);
}

.rc__form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.rc__input {
  flex: 1 1 160px;
  max-width: 220px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(23, 20, 26, 0.18);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
}

.rc__input.is-shake {
  animation: rc-shake 220ms ease-out;
}

@keyframes rc-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
.rc__submit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 0;
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.rc__check {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  opacity: 0;
  transition: stroke-dashoffset 300ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.rc__form.is-done .rc__submit {
  transform: scale(1.04);
}

.rc__form.is-done .rc__check {
  stroke-dashoffset: 0;
  opacity: 1;
}

.rc__form.is-done .rc__submit-label::after {
  content: " 완료";
}

.rc__done {
  min-height: 14px;
  margin: 8px 0 0;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  font-family: inherit;
  color: #2f6df6;
}

.rc.is-demo .rc__submit {
  animation: rc-pulse 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.rc.is-demo .rc__check {
  animation: rc-check 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes rc-pulse {
  0%, 55%, 100% {
    transform: scale(1);
  }
  70% {
    transform: scale(1.06);
  }
}
@keyframes rc-check {
  0%, 55% {
    stroke-dashoffset: 24;
    opacity: 0;
  }
  72%, 92% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 24;
    opacity: 0;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .rc__title {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .rc__sub {
    margin-bottom: 8px;
    font-size: 10px;
  }
  .rc__input {
    padding: 8px 12px;
  }
  .rc__submit {
    padding: 8px 16px;
  }
  .rc__done {
    min-height: 0;
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rc__orb {
    animation: none !important;
  }
  .rc__submit, .rc__check, .rc__input {
    transition: none;
    animation: none !important;
  }
  .rc.is-demo .rc__submit, .rc.is-demo .rc__check {
    animation: none !important;
  }
}
