:root {
    --input-radius: 8px;
    --input-radius-lg: 12px;
    --input-radius-pill: 9999px;
    --input-border: #d1d5db;
    --input-border-focus: #3b82f6;
    --input-bg: #ffffff;
    --input-bg-disabled: #f9fafb;
    --input-font-size: 0.875rem;
    --input-padding: 0.5rem 0.75rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.input {
    padding: var(--input-padding);
    font-size: var(--input-font-size);
    color: #111827;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--input-radius);
    transition: border-color 150ms, box-shadow 150ms;
}

.input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px #dbeafe;
    background-color: #ffffff;
    border-radius: var(--input-radius);
}

.input--error {
    background-color: #fff5f5;
    border-color: #ef4444;
    color: #7f1d1d;
    border-radius: var(--input-radius);
}

.input--error:focus {
    box-shadow: 0 0 0 3px #fee2e2;
    border-radius: var(--input-radius);
}

.input--success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #14532d;
    border-radius: var(--input-radius);
}

.input--lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--input-radius-lg);
}

.input--pill {
    padding: 0.5rem 1.25rem;
    border-radius: var(--input-radius-pill);
}

.input--dark {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
    border-radius: var(--input-radius);
}

.input[disabled] {
    background-color: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
    border-radius: var(--input-radius);
    cursor: not-allowed;
}

.select {
    padding: var(--input-padding);
    font-size: var(--input-font-size);
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--input-radius);
    cursor: pointer;
}

.select--filled {
    background-color: #f3f4f6;
    border-color: transparent;
    color: #111827;
    border-radius: var(--input-radius);
}

.textarea {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--input-radius-lg);
    resize: vertical;
    min-height: 100px;
}

.search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    background-color: #f3f4f6;
    border: 1px solid transparent;
    border-radius: var(--input-radius-pill);
    color: #111827;
}

.search-input:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px #dbeafe;
    border-radius: var(--input-radius-pill);
}

.checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
    accent-color: #2563eb;
    cursor: pointer;
}

.radio {
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
    cursor: pointer;
}

.toggle {
    width: 2.75rem;
    height: 1.5rem;
    background-color: #d1d5db;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 200ms;
}

.toggle--on {
    background-color: #2563eb;
    border-radius: 9999px;
}

.form-hint {
    font-size: 0.75rem;
    color: #6b7280;
}

.form-error-text {
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 500;
}

.form-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.form-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 1.5rem 0;
}
