/* Form inputs. The home page's tracking-id input, the reassessment
   modal's text/email/textarea/select fields, the admin key-creation
   form, and the admin-login password field all hand-rolled the same
   border/focus/placeholder rules. One ruleset, applied via .field-input. */

.field-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 13px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  outline: none;
  letter-spacing: 0.02em;
  /* No transition — border-color/background/color changes trigger paint.
     Focus state changes are instantaneous and feel snappier without it. */
}

.field-input:focus,
input:focus,
textarea:focus,
select:focus { border-color: var(--accent-green); }

/* Pages that want the yellow focus ring (reassessment modal, admin
   settings) opt in with this modifier instead of overriding the rule. */
.focus-yellow:focus { border-color: var(--accent-yellow) !important; }

textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a6080' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}
select option { background: var(--surface); }

.field { margin-bottom: var(--space-4); }

.field label,
.form-field label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-error {
  font-size: 11px;
  color: var(--danger);
  margin-top: 6px;
  min-height: 16px;
}

.input-group {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}