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

.valid {
  box-sizing: border-box;
  width: min(270px, 86vw);
  background: #fff7e6;
  border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}
.valid__label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  font-family: inherit;
  color: #17141a;
}
.valid__frame {
  position: relative;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  transition: border-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.valid__frame.is-ok {
  border-color: #4b976b;
}
.valid__frame.is-bad {
  border-color: #c2361a;
}
.valid__input {
  box-sizing: border-box;
  width: 100%;
  border: 0;
  border-radius: inherit;
  padding: 12px 32px 12px 16px;
  font-weight: 500;
  font-size: clamp(13px, 3.8vw, 15px);
  font-family: inherit;
  color: #17141a;
  background: transparent;
}
.valid__input:focus {
  outline: none;
}
.valid__icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.valid__frame.is-ok .valid__icon {
  color: #4b976b;
  transform: translateY(-50%) scale(1);
}
.valid__frame.is-bad .valid__icon {
  color: #c2361a;
  transform: translateY(-50%) scale(1);
}
.valid__msg {
  margin: 8px 0 0;
  min-height: 14px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  font-family: inherit;
  color: #c2361a;
}

@media (prefers-reduced-motion: reduce) {
  .valid__frame, .valid__icon {
    transition: none;
  }
}
