html, body {
  margin: 0;
  overflow: hidden;
}

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

.ui {
  width: min(260px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui__label {
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
  color: #17141a;
}

.ui__input {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid rgba(23, 20, 26, 0.2);
  background: #fff;
  color: #17141a;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
}

.ui__msg {
  margin: 0;
  color: #17141a;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.3;
  font-family: inherit;
}

@keyframes ui-shake {
  0%, 22%, 100% {
    transform: translateX(0);
  }
  2% {
    transform: translateX(-7px);
  }
  4% {
    transform: translateX(7px);
  }
  6% {
    transform: translateX(-7px);
  }
  8% {
    transform: translateX(7px);
  }
  10% {
    transform: translateX(-5px);
  }
  12% {
    transform: translateX(5px);
  }
  14% {
    transform: translateX(-3px);
  }
  16% {
    transform: translateX(3px);
  }
}
.ui__input:user-invalid {
  border-color: #c2361a;
  animation: ui-shake 500ms ease-out;
}

.ui.is-demo .ui__input {
  animation: ui-shake 500ms ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ui__input:user-invalid,
  .ui.is-demo .ui__input {
    animation: none !important;
  }
}
