/* ═══════════════════════════════════════════════════════════
   FORM INPUTS
═══════════════════════════════════════════════════════════ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  transition:
    border-color var(--transition-colors),
    box-shadow var(--transition-colors);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input:disabled,
textarea:disabled,
select:disabled {
  background: var(--bg-3);
  color: var(--text-mute);
  border-color: var(--line-soft);
  cursor: not-allowed;
}

textarea {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  resize: vertical;
  min-height: 100px;
}

select {
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   FORM GROUPS
═══════════════════════════════════════════════════════════ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
}

label .required {
  color: var(--t-bug);
}

.field-help {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 2px;
}

.field-error {
  font-size: 12px;
  color: var(--t-bug);
  margin-top: 2px;
}

input.error,
textarea.error {
  border-color: var(--t-bug);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   SEARCH INPUT
═══════════════════════════════════════════════════════════ */

.search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input input {
  padding-left: 36px;
}

.search-input::before {
  content: '🔍';
  position: absolute;
  left: 10px;
  font-size: 14px;
  pointer-events: none;
}
