:root {
  --fondo: #ffffff;
  --inchiostro: #111111;
  --spento: #8a8a8a;
  --riga: #d4d4d4;
  --accento: #e8590c;
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.field {
  position: relative;
  width: min(340px, 86vw);
  height: 58px;
}

.field__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.field__line path {
  fill: none;
  stroke: var(--riga);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field__label {
  position: absolute;
  left: 16px;
  top: 0;
  height: 58px;
  display: flex;
  align-items: center;
  color: var(--spento);
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: 0 50%;
  will-change: transform;
}
.field__label span { display: block; }

.field__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6px 16px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--inchiostro);
  font: inherit;
  font-size: 17px;
  font-variation-settings: "wght" 440, "wdth" 100;
  caret-color: var(--accento);
}

.field__help {
  position: absolute;
  left: 17px;
  top: calc(100% + 10px);
  font-size: 12px;
  color: var(--spento);
  opacity: 0;
  white-space: nowrap;
}
