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

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

.form {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: clamp(240px, 82vw, 340px);
  padding: 16px;
  border: 3px solid #17141a;
  border-radius: 0;
  background: #fff7e6;
  box-shadow: 8px 8px 0 #17141a;
}

.form__field {
  display: block;
}

.form__input {
  box-sizing: border-box;
  width: 100%;
  border: 3px solid #17141a;
  border-radius: 0;
  background: #ffffff;
  padding: 8px 12px;
  color: #17141a;
  font-weight: 600;
  font-size: clamp(12px, 2.8vw, 13px);
  box-shadow: 0 0 0 rgba(255, 77, 31, 0);
  animation: focusPop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.form__btn {
  box-sizing: border-box;
  align-self: flex-start;
  border: 3px solid #17141a;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  padding: 8px 24px;
  font-weight: 800;
  font-size: clamp(12px, 2.8vw, 14px);
  box-shadow: 8px 8px 0 #17141a;
  animation: pressInto 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
  animation-delay: -1s;
}

@keyframes pressInto {
  0%, 50%, 100% {
    transform: translate(0, 0);
    box-shadow: 8px 8px 0 #17141a;
  }
  70% {
    transform: translate(8px, 8px);
    box-shadow: 0 0 0 #17141a;
  }
}
@keyframes focusPop {
  0%, 60%, 100% {
    box-shadow: 0 0 0 rgba(255, 77, 31, 0);
    border-color: #17141a;
  }
  80% {
    box-shadow: 4px 4px 0 #ff4d1f;
    border-color: #ff4d1f;
  }
}
@media (prefers-reduced-motion: reduce) {
  .form__btn {
    animation: none !important;
    transform: none;
    box-shadow: 8px 8px 0 #17141a;
  }
  .form__input {
    animation: none !important;
    box-shadow: 0 0 0 rgba(255, 77, 31, 0);
    border-color: #17141a;
  }
}
