@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700&display=swap');

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body{
  background-color: #1c1c1c;
}
  
.header{
  background-color: #2a2a2a;
  padding: 1rem 3rem;
}
  
/*NAVBAR*/
  
.navbar{
  display: flex;
  justify-content: space-between;
}
  
.logo{
  color: white;
}
  
.logo h1 span{
  color: #ff1867;
}
  
.logo a{
  color: whitesmoke;
  text-decoration: none;
}

button {
  width: 120px;
  height: 35px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  color: white;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  position: relative;
  transition: all 0.5s;
  z-index: 1;
 }
 
 button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: white;
  z-index: -1;
  transition: all 0.5s;
 }
 
 button:hover::before {
  width: 100%;
 }
 
 button:hover {
  color: black;
 }
 
 button:active:before {
  background: #b9b9b9;
 }

/*section LOGIN*/

.container__form{
  display: flex;
  justify-content: center;
  align-items: center;
}

.box{
  position: relative;
  width: 380px;
  height: 420px;
  background: #2a2a2a;
  margin-top: 4rem;
  border-radius: 8px;
  overflow: hidden;
}

.box::before{
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 380px;
  height: 420px;
  background: linear-gradient(0deg,transparent,#00DAF7,#00DAF7);
  transform-origin: bottom right;
  animation: animate 6s linear infinite;
}

.box::after{
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 380px;
  height: 420px;
  background: linear-gradient(0deg,transparent,#00DAF7,#00DAF7);
  transform-origin: bottom right;
  animation: animate 6s linear infinite;
  animation-delay: -3s;
}

@keyframes animate{
  0%{
    transform: rotate(0deg);
  }
  100%{
    transform: rotate(360deg);
  }
}

.form{
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  background-color: #2a2a2a;
  z-index: 10;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
}

.form h2{
  color: #00DAF7;
  text-align: center;
  letter-spacing: 0.1em;
}

.inputBox__login{
  position: relative;
  width: 300px;
  margin-top: 35px;
}

.inputBox__login input{
  position: relative;
  width: 100%;
  padding: 20px 10px 10px;
  background: transparent;
  border: none;
  outline: none;
  color: #2a2a2a;
  font-size: 1em;
  letter-spacing: 0.05em;
  z-index: 10;
}

.inputBox__login span{
  position: absolute;
  left: 0;
  padding: 20px 0px 10px;
  font-size: 1em;
  color: #8f8f8f;
  pointer-events: none;
  letter-spacing: 0.05em;
  transition: 0.5s;
}

.inputBox__login input:valid ~ span,
.inputBox__login input:focus ~ span{
  color: #00DAF7;
  transform:translateX(0px) translateY(-34px);
  font-size: 0.75em;
}

.inputBox__login i{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #00DAF7;
  border-radius: 4px;
  transition: 0.5s;
  pointer-events: none;
  z-index: 9;
}

.inputBox__login input:valid ~ i,
.inputBox__login input:focus ~ i{
  height: 44px;
}

.links{
  display: flex;
  justify-content: space-between;
}

.links a{
  margin: 10px 0;
  font-size: 0.75em;
  color: #8f8f8f;
  text-decoration: none;
}

.links a:hover{
  color: #00DAF7;
}

.btn__login{
  border: none;
  outline: none;
  background-color: #00DAF7;
  padding: 11px 25px;
  width: 100px;
  margin-top: 10px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.btn__login:active{
 opacity: 0.8;
}

/*Section INFO*/
 .info{
  display: flex;
  justify-content: space-around;
  background-color: #2a2a2a;
  height: 22rem;
  color: white;
  margin-top: 4rem;
  padding: 2rem 0;
}

.logo__info{
  align-self: center;
}

.links__info{
  display: flex;
  flex-direction: column;
  line-height: 40px;
  width: 200px;
  margin-right: 100px;
}

.links__info a{
  text-decoration: none;
  color: white;
}

.links__info a:hover{
  color: #ff1867;
}

.inputBox{
  position: relative;
  width: 250px;
  padding-bottom: 12px;
}

.inputBox input{
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: #2a2a2a;
  border-radius: 5px;
  outline: none;
  color: white;
  font-size: 1em;
  transition: 0.5s;
}

.inputBox textarea{
  width: 100%;
  height: 120px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: #2a2a2a;
  border-radius: 5px;
  outline: none;
  color: white;
  font-size: 1em;
  resize: none;
}

.inputBox span{
  position: absolute;
  left: 0;
  padding: 10px;
  pointer-events: none;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.25);
  transition: 0.5s;
}

.inputBox input:valid ~ span,
.inputBox input:focus ~ span,
.inputBox textarea:valid ~ span,
.inputBox textarea:focus ~ span{
  color: #00DAF7;
  transform: translateX(10px) translateY(-7px);
  font-size: 0.8em;
  padding: 0 10px;
  background-color: #2a2a2a;
  border-left: 1px solid #00DAF7;
  border-right: 1px solid #00DAF7;
  letter-spacing: 0.2em;
}

.inputBox textarea:valid ~ span,
.inputBox textarea:focus ~ span{
  background-color: #00DAF7;
  color: white;
  border-radius: 2px;
}

.inputBox input:valid,
.inputBox input:focus,
.inputBox textarea:valid,
.inputBox textarea:focus{
  border: 1px solid #00DAF7
}

.form__info p{
  margin: 1rem 0;
}

.btn__mensaje{
  background-color: #00DAF7;
  border: none;
  height: 51px;
  width: 180px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn__mensaje:active{
 opacity: 0.8;
}

/*footer*/

.footer{
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0;
}

.footer h1{
  font-size: 1rem;
}

/*@media*/

@media screen and (max-width:420px){
  .navbar{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo{
    margin-bottom: 1rem;
  }

  .titulo p{
    font-size: 30px;
    font-weight: bold;
  }

  .info{
    flex-direction: column;
    align-items: center;
    height: 44rem;
  }

  .links__info{
    align-items: center;
    margin: 0 auto;
  }
}