<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Input placeholder and caret styles</title>
</head>
<body>
  <input type="text" placeholder="I'm a form field">
</body>
</html>
body {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 100vh;
  font-size: 1rem;
  background-color: #04142F;
}

input {
  width: 30%;
  border: solid 2px #013BC2;
  background-color: #212121;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: inherit;
  color: #efefef;
  caret-color: #013BC2;
}

::placeholder {
  color: #bbbbbb;
  font-style: italic;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.