body {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 100vh;
  width: 100vw;

  background-color: #4834d4;
}

.container {
  --duration: 0.5s;

  width: 300px;

  padding: 15px 40px;

  background-color: #000000aa;
  border-radius: 5px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

.container h1 {
  text-align: center;
}

.container .input {
  margin: 20px 0px;

  display: flex;
  flex-direction: column-reverse;
}

.container .input input {
  background-color: transparent;
  border: none;
  outline: none;
  color: white;

  border-bottom: white 2px solid;
}

.container .input input:valid {
  border-bottom: lightblue 2px solid;
}

.container .input .title {
  display: flex;

  margin: 0;
  padding: 0;
  border-radius: 3px;

  pointer-events: none;
}

.container .input .title span {
  transform: translateY(100%);

  pointer-events: none;

  transition: transform var(--duration) cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.container .input input:hover + .title span,
.container .input input:focus + .title span,
.container .input input:valid + .title span {
  transform: translateY(0%);
}

.container .btn {
  height: 40px;
  width: 100%;

  background-color: lightblue;
  border-radius: 3px;
  border: none;
  outline: none;
  color: white;
  font-size: 1.1em;

  transition: transform 50ms ease;
}

.container .btn:active {
  transform: scale(0.98);
}

.container p {
  margin: 30px 0px;
}

.container p a {
  text-decoration: none;

  color: lightblue;
}

.container p a:hover {
  color: #3498db;
}

.container p a:active {
  color: #1e90ff;
}
