@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

:root {
  /*old colors */
  /* --primary-color: #121314; */
  /* --background-color: #1e1f25; */

  --primary-color: #171828;
  /* --primary-color: #1a1f40; */
  --background-color: #222339;
  /* --background-color: #141830; */


  --red: #e7696e;
  --banner-color: #30314c;
  --green: #01d676;
  --text-color: #fff;
}

/* https://youtu.be/eeHqZeJ9Vqc */
.login-box {
    color: var(--text-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    background: var(--primary-color);
    border-radius: 20px;
}

.login-box h1 {
  text-align: center;
  padding: 0 0 20px 0;
  border-bottom: 1px solid var(--text-color);
}

.login-box form {
  padding: 0 40px;
  box-sizing: border-box;
}

form .text-field {
  position: relative;
  border-bottom: 2px solid var(--text-color);
  margin: 30px 0;
}

.text-field input {
  width: 100%;
  padding: 0 5px;
  height: 40px;
  font-size: 16px;
  border: none;
  background: none;
  outline: none;
}

.text-field label {
  position: absolute;
  top: 50%;
  left: 5px;
  color: var(--text-color);
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  transition: 0.3s;
}
/* slides the label up */
.text-field input:focus ~ label,
.text-field input:valid ~ label {
  top: -5px;
  color: var(--text-color);
}

input[type="submit"] {
  width: 100%;
  height: 50px;
  border: 1px solid;
  background: #01d676;
  border-radius: 20px;
  font-size: 20px;
  /* color: var(--text-color); */
  font-weight: 700;
}

@media screen and (max-width: 920px) {
  .login-box {
      width: 80%;
  }
}