@import url('https://fonts.googleapis.com/css2?family=Muli&display=swap');

* {
  box-sizing: border-box;
}

body {
  display: grid;
  place-content: center;
  min-height: 100vh;
  margin: 0;
  font-family: Muli, sans-serif;
  background-color: steelblue;
  color: #fff;
}

.container {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px 40px;
  border-radius: 5px;
  h1 {
    text-align: center;
  }
  a {
    text-decoration: none;
    color: lightblue;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 300px;
  margin-bottom: 30px;
}

.form-control {
  position: relative;
  input {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 15px 0;
    font-size: 18px;
    background-color: transparent;
    color: #fff;
    border: 0;
    border-bottom: 2px solid #fff;
    &:is(:focus, :valid) {
      outline: 0;
      border-bottom-color: lightblue;
      + label span {
        color: lightblue;
        transform: translateY(-30px);
      }
    }
  }
  label {
    position: absolute;
    top: 15px;
    left: 0;
    span {
      display: inline-block;
      font-size: 18px;
      min-width: 5px;
      transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 0.155);
    }
  }
}

.btn {
  padding: 15px;
  font-family: inherit;
  font-size: 16px;
  background: lightblue;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  &:focus {
    outline: 0;
  }
  &:active {
    transform: scale(0.98);
  }
}
