.input, .textarea, select.input {
  width: 100%;
  height: var(--auth-input-height, 2.75rem);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 16px;
  background: var(--card);
  color: var(--foreground);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.textarea {
  height: auto;
  min-height: 180px;
  resize: vertical;
}
.input:hover, .textarea:hover, select.input:hover {
  border-color: color-mix(in srgb, var(--foreground) 30%, var(--input));
}
.input:focus, .textarea:focus, select.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--auth-focus-ring);
}
.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
select.input[aria-invalid="true"],
.input.isInvalid {
  border-color: var(--destructive) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--destructive) 20%, transparent) !important;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%236b7269' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

input[type="file"] {
  font: inherit;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  padding: 0.15rem 0;
}
input[type="file"]::file-selector-button {
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--muted);
  color: var(--foreground);
  padding: 0.4rem 0.75rem;
  margin-right: 0.75rem;
  transition: background-color 0.1s ease, border-color 0.1s ease;
}
input[type="file"]::file-selector-button:hover {
  background: var(--card);
  border-color: var(--muted-foreground);
}
.label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.35rem;
}
.checkLabel { display: flex; gap: var(--space-2); align-items: center; margin-bottom: 0.85rem; font-weight: 500; }

.formError {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--destructive);
  margin-top: 0.35rem;
}
.formError::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}

.charMeta { color: var(--muted-foreground); font-size: var(--text-sm); margin: -0.4rem 0 1rem; }
.charMeta.isWarn { color: var(--warning); }
.charMeta.isLong { color: var(--destructive); }
