* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  height: 100vh;
  text-align: center;
  align-items: center;
  justify-content: center;
  background: #151515;
}

.login-form {
  position: relative;
  width: 370px;
  height: auto;
  background: #1b1b1b;
  padding: 40px 35px 60px;
  border-radius: 5px;
  box-shadow: inset 0 0 1px #272727;
}

.text {
  font-size: 30px;
  color: #c7c7c7;
  font-weight: 600;
  letter-spacing: 2px;
}

form {
  margin-top: 40px;
}

form .field {
  margin-top: 20px;
  display: flex;
  flex-direction: row-reverse;
}

.field .fa-solid {
  height: 50px;
  width: 60px;
  color: #868686;
  font-size: 20px;
  line-height: 50px;
  border: 1px solid #444;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(#333, #222);
}

.field input,
form button {
  height: 50px;
  width: 100%;
  outline: none;
  font-size: 19px;
  color: #868686;
  padding: 0 15px;
  border-radius: 0 5px 5px 0;
  border: 1px solid #444;
  background: linear-gradient(#333, #222);
}

.field input {
  border-left: none;
  color: #339933;
}

.field label {
  cursor: pointer;
}

.field input:focus ~ label .fa-solid {
  color: #339933;
  box-shadow: 0 0 0 rgba(0, 255, 0, 0.2), inset 0 0 0 rgba(0, 255, 0, 0.1);
  background: linear-gradient(#339933, #222922);
  animation: glow-icon 0.8s ease-out infinite alternate;
}

.field input:focus {
  animation: glow-input 0.8s ease-out infinite alternate;
}

@keyframes glow-icon {
  0% {
    border-color: #339933;
    box-shadow: 0 0 0 rgba(0, 255, 0, 0.2), inset 0 0 0 rgba(0, 255, 0, 0.1);
  }
  100% {
    border-color: #6f6;
    box-shadow: 0 0 0 rgba(0, 255, 0, 0.6),
      inset 1px 0 10px rgba(0, 255, 0, 0.4);
  }
}

@keyframes glow-input {
  0% {
    border-color: #339933;
    box-shadow: 0 0 0 rgba(0, 255, 0, 0.2), inset 0 0 0 rgba(0, 255, 0, 0.1);
  }
  100% {
    border-color: #6f6;
    box-shadow: 0 0 0 rgba(0, 255, 0, 0.6), inset 0 0 10px rgba(0, 255, 0, 0.4);
  }
}

form button {
  margin-top: 30px;
  border-radius: 5px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  border-color: #339933;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.3), 0 0 10px rgba(0, 255, 0, 0.2),
    0 0 15px rgba(0, 255, 0, 0.1), 0 2px 0 #000;
  color: #339933;
  text-shadow: 2px 2px 3px rgba(0, 255, 0, 0.3);
}

.link {
  margin-top: 24px;
  color: #868686;
}

.link a {
  color: #339933;
  text-decoration: none;
}

.link a:hover {
  text-decoration: underline;
}
