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);
}

.rq {
  box-sizing: border-box;
  width: min(300px, 86vw);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.rq__field {
  position: relative;
}

.rq__input {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 2px solid rgba(23, 20, 26, 0.2);
  border-radius: 12px;
  background: #ffffff;
  color: #17141a;
  font-family: inherit;
  font-size: 14px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: border-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.rq__input::placeholder {
  color: rgba(23, 20, 26, 0.36);
  font-weight: 600;
  letter-spacing: normal;
}

.rq__input:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.rq.is-demo .rq__input::placeholder {
  color: transparent;
}

.rq__ghost {
  position: absolute;
  left: 14px;
  top: 0;
  color: #17141a;
  font-size: 14px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.rq__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rq__row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(23, 20, 26, 0.72);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  transition: color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.rq__row.is-pass {
  color: #479076;
}

.rq__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.rq__mark > svg {
  transform: scale(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.rq__row.is-pass .rq__mark > svg {
  transform: scale(1);
  opacity: 1;
}

.rq.is-demo .rq__ghost {
  opacity: 1;
  animation-name: rq-type;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.rq.is-demo .rq__input {
  transition: none;
  animation-name: rq-input;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.rq.is-demo .rq__row {
  transition: none;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.rq.is-demo .rq__mark > svg {
  transition: none;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.rq.is-demo .rq__row[data-rule="0"] {
  animation-name: rq-row-0;
}

.rq.is-demo .rq__row[data-rule="1"] {
  animation-name: rq-row-1;
}

.rq.is-demo .rq__row[data-rule="2"] {
  animation-name: rq-row-2;
}

.rq.is-demo .rq__row[data-rule="0"] .rq__mark > svg {
  animation-name: rq-pop-0;
}

.rq.is-demo .rq__row[data-rule="1"] .rq__mark > svg {
  animation-name: rq-pop-1;
}

.rq.is-demo .rq__row[data-rule="2"] .rq__mark > svg {
  animation-name: rq-pop-2;
}

@keyframes rq-type {
  0% {
    clip-path: inset(0 62% 0 0);
  }
  24% {
    clip-path: inset(0 38% 0 0);
  }
  40% {
    clip-path: inset(0 20% 0 0);
  }
  56% {
    clip-path: inset(0 0 0 0);
  }
  86% {
    clip-path: inset(0 62% 0 0);
  }
  100% {
    clip-path: inset(0 62% 0 0);
  }
}
@keyframes rq-input {
  0% {
    border-color: rgba(23, 20, 26, 0.2);
  }
  56% {
    border-color: #479076;
  }
  82% {
    border-color: rgba(23, 20, 26, 0.2);
  }
  100% {
    border-color: rgba(23, 20, 26, 0.2);
  }
}
@keyframes rq-row-0 {
  0% {
    color: rgba(23, 20, 26, 0.72);
  }
  24% {
    color: #479076;
  }
  74% {
    color: rgba(23, 20, 26, 0.72);
  }
  100% {
    color: rgba(23, 20, 26, 0.72);
  }
}
@keyframes rq-row-1 {
  0% {
    color: rgba(23, 20, 26, 0.72);
  }
  40% {
    color: #479076;
  }
  78% {
    color: rgba(23, 20, 26, 0.72);
  }
  100% {
    color: rgba(23, 20, 26, 0.72);
  }
}
@keyframes rq-row-2 {
  0% {
    color: rgba(23, 20, 26, 0.72);
  }
  56% {
    color: #479076;
  }
  82% {
    color: rgba(23, 20, 26, 0.72);
  }
  100% {
    color: rgba(23, 20, 26, 0.72);
  }
}
@keyframes rq-pop-0 {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  24% {
    transform: scale(0);
    opacity: 0;
  }
  30% {
    transform: scale(1.3);
    opacity: 1;
  }
  34% {
    transform: scale(1);
    opacity: 1;
  }
  74% {
    transform: scale(1);
    opacity: 1;
  }
  75% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
@keyframes rq-pop-1 {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  40% {
    transform: scale(0);
    opacity: 0;
  }
  46% {
    transform: scale(1.3);
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  78% {
    transform: scale(1);
    opacity: 1;
  }
  79% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
@keyframes rq-pop-2 {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  56% {
    transform: scale(0);
    opacity: 0;
  }
  62% {
    transform: scale(1.3);
    opacity: 1;
  }
  66% {
    transform: scale(1);
    opacity: 1;
  }
  82% {
    transform: scale(1);
    opacity: 1;
  }
  83% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
@media (max-width: 360px) {
  .rq__input {
    height: 36px;
    line-height: 32px;
  }
  .rq__ghost {
    line-height: 36px;
  }
  .rq__list {
    margin-top: 8px;
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rq.is-demo .rq__ghost,
  .rq.is-demo .rq__input,
  .rq.is-demo .rq__row,
  .rq.is-demo .rq__mark > svg {
    animation: none !important;
  }
  .rq.is-demo .rq__ghost {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  .rq.is-demo .rq__input {
    border-color: #479076;
  }
  .rq.is-demo .rq__row {
    color: #479076;
  }
  .rq.is-demo .rq__mark > svg {
    transform: scale(1);
    opacity: 1;
  }
  .rq__row, .rq__input, .rq__mark > svg {
    transition: none;
  }
}
