<input type="text" placeholder="Login">
body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  min-height: 100vh;
  rgb(255, 255, 255)
  font-family: tahoma;
}

::-webkit-input-placeholder {
  color:#999;
  opacity:1
}
:-moz-placeholder,
::-moz-placeholder {
  color:#999;
  opacity:1
}
:-ms-input-placeholder {
  color:#999;
  opacity:1
}
:focus::-webkit-input-placeholder {
  color:transparent;
}
:focus:-moz-placeholder,
:focus::-moz-placeholder {
  color:transparent;
}
:focus:-ms-input-placeholder {
  color:transparent;
}

input {
  box-sizing: border-box;
  transition: none;
  width: 300px;
  height: 2.8125rem;
  border-radius: 0.75rem;
  padding: 0.1875rem 0.625rem;
  color: #4e3831;
  font-size: 0.875rem;
  line-height: 0.875rem;
  font-weight: 400;
  text-align: center;
  outline: none;
  box-shadow: none;
  min-width: 0;
  background-color: #e5e2e2;
  border: 1px solid transparent;
  background: linear-gradient(#e5e2e2, #e5e2e2 0) padding-box,
    linear-gradient(90deg, #fa5560, #4d91ff) border-box;
}

input:focus {
    background: linear-gradient(#ececec, #ececec 0) padding-box, linear-gradient(90deg, #ff2aac, #8b00ff) border-box;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.