/* Form fields. No input, label or button is left with the browser's own look. */

/* One labeled input: the label, then an optional hint, then the input, close together. */
.field {
  display: grid;
  gap: var(--space-3xs);
}

.field-label {
  font-family: var(--font-family-display);
  font-size: var(--step--1);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
}

.field-hint {
  color: var(--color-muted);
  font-size: var(--step--1);
}

/* The input itself: squared off and ruled like every other block on the page. Its text is body
   size on purpose. A phone browser zooms the whole page in on any input set smaller than 16px,
   and step 0 never goes below 17. */
.field-input {
  background: var(--color-paper);
  border: var(--rule-heavy);
  border-radius: 0;
  color: var(--color-ink);
  font-size: var(--step-0);
  inline-size: 100%;
  line-height: var(--line-height-text);
  padding: var(--space-2xs) var(--space-xs);
}

/* An authenticator code or a backup code: spaced out so it can be checked digit by digit. */
.field-input-code {
  font-family: var(--font-family-display);
  letter-spacing: var(--letter-spacing-code);
}
