/* LovelyHair — Input field (ported from Input.jsx) */
.lh-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lh-field__label {
  font-family: var(--font-body);
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-heading);
}
.lh-field__req { color: var(--color-primary); }

.lh-field__control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: var(--transition-fast);
}
/* Password field: the show/hide eye (sheet.js wraps the input in .lh-pw-field) sits flush on the
   right border, so the control gives up its right padding to it. */
.lh-field__control:has(> .lh-pw-field) { padding-right: 0; }
.lh-field__control:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--ring-focus);
}
.lh-field__icon {
  color: var(--text-muted);
  display: flex;
}

.lh-field__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--font-body-md);
  color: var(--text-body);
  padding: 12px 0;
}
.lh-field__input::placeholder { color: var(--text-subtle); }
.lh-field__input:disabled { cursor: not-allowed; }
.lh-field__control:has(.lh-field__input:disabled) { background: var(--surface-sunken); }

.lh-field__msg {
  font-family: var(--font-body);
  font-size: var(--font-caption);
  color: var(--text-muted);
}

/* Error state */
.lh-field--error .lh-field__control { border-color: var(--color-error); }
.lh-field--error .lh-field__control:focus-within { box-shadow: none; }
.lh-field--error .lh-field__msg { color: var(--color-error); }
