/* Anahata v2 — text field. Same box as ui-code-input, plus a label. */

.text-field {
  display: flex;
  flex-direction: column;
  gap: var(--a-space-2);
}

.text-field__label {
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-body-s);
  line-height: var(--a-lh-body-s);
  color: var(--a-ink);
}

.text-field__box {
  display: flex;
  align-items: center;
  padding: var(--a-space-3) var(--a-space-4);
  border: 1px solid var(--a-border-input);
  border-radius: var(--a-radius);
  background: var(--a-surface);
}

.text-field__box:focus-within {
  border-color: var(--a-ink);
  box-shadow: inset 0 0 0 1px var(--a-ink);
}

.text-field__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--a-font-body);
  font-size: var(--a-fs-body-m);
  color: var(--a-ink);
}

.text-field__input::placeholder {
  color: var(--a-text-placeholder);
}

.text-field__input:focus,
.text-field__input:focus-visible {
  /* Dawn's global *:focus-visible draws a grey ring + shadow on the bare input
     inside our box (designer review 2026-09-24). Focus is shown by the box's
     own border instead — see :focus-within above. */
  outline: none;
  box-shadow: none;
}

.text-field__note {
  margin: 0;
  font-family: var(--a-font-body);
  font-size: var(--a-fs-label);
  line-height: var(--a-lh-label);
  color: var(--a-label-secondary);
}
