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

.pw {
  width: min(240px, 82vw);
}

.pw__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  font-family: inherit;
  color: rgba(255, 247, 230, 0.75);
}

.pw__frame {
  position: relative;
}

.pw__input {
  box-sizing: border-box;
  width: 100%;
  border: 2px solid rgba(255, 247, 230, 0.35);
  border-radius: 12px;
  padding: 12px 40px 12px 16px;
  font-weight: 500;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
  background: transparent;
  letter-spacing: 0.06em;
}
.pw__input:focus {
  outline: none;
  border-color: #fff7e6;
}

.pw__eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.pw__eye::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 230, 0.4) 0%, rgba(255, 247, 230, 0) 70%);
  opacity: 0;
  pointer-events: none;
}

.pw__eye.is-shown::after {
  animation: pw-bloom 220ms ease-out;
}

@keyframes pw-bloom {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}
.pw__icon {
  position: absolute;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff7e6;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scale(1);
  opacity: 1;
  transition: transform 220ms cubic-bezier(0.3, 1.6, 0.4, 1), opacity 220ms cubic-bezier(0.3, 1.6, 0.4, 1);
}

.pw__icon--off {
  transform: scale(0.5);
  opacity: 0;
}

.pw__eye.is-shown .pw__icon--eye {
  transform: scale(0.5);
  opacity: 0;
}

.pw__eye.is-shown .pw__icon--off {
  transform: scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pw__icon {
    transition: none;
  }
  .pw__eye.is-shown::after {
    animation: none;
  }
}
