/* Input */
.input {
  display: flex;
  width: 100%;
  height: 2.25rem;
  padding: 0 0.75rem;
  background: transparent;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--foreground);
  outline: none;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  font-family: inherit;
}
.input::placeholder { color: var(--muted-foreground); }
.input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px oklch(from var(--ring) l c h / 20%);
}
.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.input[type="file"] {
  padding: 0.25rem 0.5rem;
  height: auto;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Textarea */
.textarea {
  display: flex;
  min-height: 5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--foreground);
  outline: none;
  resize: vertical;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  font-family: inherit;
}
.textarea::placeholder { color: var(--muted-foreground); }
.textarea:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px oklch(from var(--ring) l c h / 20%);
}
.textarea:disabled { cursor: not-allowed; opacity: 0.5; }

/* Label */
.label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--foreground);
  cursor: pointer;
  user-select: none;
}
.label[data-disabled="true"] { opacity: 0.7; cursor: not-allowed; }

/* Input Group */
.input-group {
  display: flex;
  align-items: center;
}
.input-group .input {
  border-radius: 0;
  flex: 1;
}
.input-group > .input:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group > .input:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  height: 2.25rem;
  background: var(--muted);
  border: 1px solid var(--input);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  white-space: nowrap;
}
.input-group-addon:first-child {
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.input-group-addon:last-child {
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
