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

.pw-card {
  width: min(210px, 80vw);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pw-card__label {
  font-size: 12px;
  color: #6b6455;
  font-family: inherit;
}

.pw-input {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #d8d2c4;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #17141a;
  margin-bottom: 8px;
}
.pw-input:focus {
  outline: none;
  border-color: #2f6df6;
}

.pw-meter {
  height: 6px;
  border-radius: 4px;
  background: #e6e2d8;
  overflow: hidden;
}

.pw-meter__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #c2361a;
  border-radius: 4px;
  transition: width 300ms ease-out, background-color 300ms ease-out;
}

.pw-status {
  position: relative;
  height: 14px;
  margin: 4px 0 0;
}

.pw-status__text {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.pw-status__text--weak {
  color: #c2361a;
}

.pw-status__text--medium {
  color: #9c7c4d;
}

.pw-status__text--strong {
  color: #51a474;
}

.pw-card.is-demo .pw-meter__fill {
  animation: fill-cycle 2s ease-out infinite;
}

.pw-card.is-demo .pw-status__text--weak {
  animation: show-weak 2s ease-out infinite;
}

.pw-card.is-demo .pw-status__text--medium {
  animation: show-medium 2s ease-out infinite;
}

.pw-card.is-demo .pw-status__text--strong {
  animation: show-strong 2s ease-out infinite;
}

@keyframes fill-cycle {
  0%, 5% {
    width: 0%;
    background: #c2361a;
  }
  30% {
    width: 35%;
    background: #c2361a;
  }
  55% {
    width: 65%;
    background: #c8af8f;
  }
  80%, 100% {
    width: 100%;
    background: #51a474;
  }
}
@keyframes show-weak {
  0%, 5% {
    opacity: 0;
  }
  12%, 45% {
    opacity: 1;
  }
  55%, 100% {
    opacity: 0;
  }
}
@keyframes show-medium {
  0%, 50% {
    opacity: 0;
  }
  58%, 70% {
    opacity: 1;
  }
  78%, 100% {
    opacity: 0;
  }
}
@keyframes show-strong {
  0%, 75% {
    opacity: 0;
  }
  83%, 100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pw-meter__fill, .pw-status__text {
    transition: none;
  }
  .pw-card.is-demo .pw-meter__fill,
  .pw-card.is-demo .pw-status__text--weak,
  .pw-card.is-demo .pw-status__text--medium,
  .pw-card.is-demo .pw-status__text--strong {
    animation: none;
  }
}
