@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@700&family=Poppins:wght@400;500;600&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body{
  background-color: #111111;
  margin: 0;
  overflow-x: hidden;
}
.center{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  background: rgba(25, 25, 25, 0.85);
  border-radius: 10px;
  box-shadow: 0 5px 10px 0 rgb(0 0 0 / 10%);
  -moz-box-shadow: 0 5px 10px 0 rgba(0,0,0,.1);
  border-width: 2px;
}
.center h1{
  text-align: center;
  padding: 0;
  color: #e9f4fb;
  margin-top: 40px;
}
.center form{
  padding: 0 40px;
  box-sizing: border-box;
}
form .txt_field{
  position: relative;
  border-bottom: 2px solid #adadad;
  margin: 30px 0;
}
.txt_field_footer{
  position: relative;
  border: none;
  margin-bottom: 2rem;
  text-align: center;
}
.txt_field_footer a{
  text-decoration: none;
  color: #236bfe;
  transition: 0.2s;
}
.txt_field_footer a:hover{
  opacity: 50%;
}
.txt_field_footer p{
  color: #dddddd;
  border: none;
}
.txt_field input{
  width: 100%;
  padding: 0 5px;
  height: 40px;
  font-size: 16px;
  border: none;
  background: none !important; 
  outline: none;
  color: #e9f4fb;
}
.txt_field label{
  position: absolute;
  top: 50%;
  left: 5px;
  color: #adadad;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
  transition: .3s;
}
.txt_field label img{
  width: 30px;
  padding: 0;
  margin-right: 20px;
  opacity: 50%;
}
.txt_field span::before{
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #236bfe;
  transition: .2s;
}
.txt_field input:focus ~ label,
.txt_field input:valid ~ label{
  top: -5px;
}
.txt_field input:focus ~ span::before,
.txt_field input:valid ~ span::before{
  width: 100%;
}
.txt_field_checkbox {
  display: flex;
  align-items: center;
  color: #dddddd;
}
.txt_field_checkbox label {
  margin-left: 0.5rem;
}
.pass a{
  text-decoration: none;
  color: #a6a6a6;
  cursor: pointer;
}
.pass a:hover{
  text-decoration: underline;
}
button{
  width: 100%;
  height: 50px;
  background: linear-gradient(65deg, #802cff 0, #5302df 100%);
  border-radius: 25px;
  font-size: 15px;
  color: #e9f4fb;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: .4s;
  margin-bottom: 40px;
  margin-top: 20px;
  border-style: none;
}
#btn {
  margin-bottom: 20px;
}

button:hover{
  background: linear-gradient(65deg, #802cff 0, #5302df 75%);
}

.center {
  position: absolute;
  z-index: 1;
}

.txt_field input:invalid {
  color: #ffa4a4;
}

#error-message {
  font-size: 14px;
  color: #FF4C4C;
}

.container-footer a {
  color: #dddddd;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}

.container-footer a:hover {
  text-decoration: underline;
}

p {
  color: #939393;
  margin-inline: 3rem;
  margin-top: 1rem;
  text-align: center;
  font-size: 14px;
}
.container-footer a {
  color: #848484;
}

@keyframes bg-animation {
    0% { transform: translate(0,0) }
    10% { transform: translate(-5%,-5%) }
    20% { transform: translate(-10%,5%) }
    30% { transform: translate(5%,-10%) }
    40% { transform: translate(-5%,15%) }
    50% { transform: translate(-10%,5%) }
    60% { transform: translate(15%,0) }
    70% { transform: translate(0,10%) }
    80% { transform: translate(-15%,0) }
    90% { transform: translate(10%,5%) }
    100% { transform: translate(5%,0) }
}

@media (max-width: 640px) {
  .center {
    width: 90%;
    max-width: 400px;
  }

  .center h1 {
    font-size: 24px;
  }

  form .txt_field {
    margin: 20px 0;
  }

  button {
    height: 45px;
    font-size: 14px;
  }

  .txt_field input {
    font-size: 14px;
  }

  .txt_field label {
    font-size: 13px;
  }

  .container-footer {
    font-size: 14px;
  }

  p {
    margin-inline: 1rem;
    font-size: 13px;
  }
}