*,
*::before,
*::after {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

body {
  background: hsl(270, 100%, 20%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  color: hsl(270, 100%, 90%);
}

.strength-meter {
  position: relative;
  width: 90%;
  height: 3rem;
  border-radius: 3rem;
  border: 5px solid hsl(270, 100%, 50%);
  overflow: hidden;
  color: hsl(270, 100%, 90%);
  font-size: 2rem;
  text-align: center;
}

.strength-meter::before {
  position: absolute;
  content: "";
  left: 0;
  width: calc(var(--strength, 10) * 1%);
  height: 100%;
  background: hsl(270, 100%, 70%);
  z-index: -1;
  transition: width 0.5s;
}

#password {
  width: 90%;
  background: hsl(270, 100%, 20%);
  border: 2px solid hsl(270, 100%, 50%);
  border-radius: 0.5rem;
  outline: none;
  color: hsl(270, 100%, 90%);
  margin: 2rem;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
}

#password:focus {
  border-color: hsl(270, 100%, 70%);
}

.reasons * {
  color: hsl(270, 100%, 80%);
  margin-bottom: 0.5rem;
}
