<div class="container">
    <form class="form">
      <h1>Iniciar sesión</h1>

      <label>
        <span>Nombre:</span>
        <input type="text" placeholder="Escribe tu nombre">
      </label>
      

      <label>
        <span>Contraseña:</span>
        <input type="password" placeholder="Escribe tu contraseña">
      </label>
      
      <a href="#">¿Olvidaste tu contraseña?</a>
    </form>
  </div>
*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root{
  --title-font:'Poppins', sans-serif;
  --body-font:'Poppins', sans-serif;
}

body{
  background:no-repeat url("https://images.pexels.com/photos/1167160/pexels-photo-1167160.jpeg") center/cover;
  line-height:2;
  font-family: var(--body-font);
  height: 100vh;
}

.container{
  background: rgba(#FF2D55,0.85);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100vh;
}

h1{
  font-size: 2em;
  color: #FFEAEE;
  text-transform: uppercase;
  padding-bottom: 0.25em;
}

label{
  display: grid;
  margin-bottom: 2em;
}

input{
  font-family: "Poppins";
  font-weight: 400;
  color: #B31F3B;
  border:2px solid #B31F3B;
  background: #FFEAEE;
  padding:0.75em 1em;
  border-radius: 5px;
  outline: none;
  font-size: 0.8em;
  width: 250px;
}

span{
  font-weight: 600;
  color: #FFEAEE;
}

a{
  font-size: 0.8em;
  color: #FFEAEE;
  opacity: 0.8;
  text-decoration: none;
  text-transform: uppercase;

  &:hover{
    text-decoration: underline;
  }
}




//Propiedad Caret color 🥳

input{
  caret-color: blue;
}

input:focus{
  animation: 5s infinite rainbow;
}

@keyframes rainbow {
  0% { caret-color: #FF2D55; }
  20% { caret-color: #FF7A00; }
  40% { caret-color: #FFA423; }
  60% { caret-color: #11D99B; }
  80% { caret-color: #0D51FF; }
  100% { caret-color: #6852EE; }
}

View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.