<input type="text" placeholder="I am enabled..." />
<input type="text" placeholder="I am disabled..." disabled />
input:enabled {
  background-color: #9abdfd;
}

input:disabled {
  cursor: not-allowed;
  background-color: #aaa;
}

/* Additional styling */
input {
  display: inline-block;
  width: 240px;
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 20px;
  border: none;
  outline: none !important;
  transition: 0.1s;
}

input::placeholder {
  color: white;
}

html,
body {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.