.custom-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: none;
  padding: 0;
  font: inherit;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.15s ease;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.custom-input[type="number"] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.custom-input[type="number"]::-webkit-outer-spin-button,
.custom-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-input.number-input {
  padding: 2px 4px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  height: auto;
  min-height: 18px;
  line-height: normal;
}

.custom-input:hover {
  background: #FFF8DD;
}

.custom-input.focused {
  border-color: #FFA600;
  background: #FFF8DD;
}

.custom-input.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: transparent;
}

.custom-input.disabled:hover {
  background: transparent;
}

.custom-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
  font-style: normal;
}

.custom-input:focus-visible {
  outline: none;
}

.password-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-input.password-input {
  padding-right: 2rem;
}

.custom-input.error,
.custom-input.error:hover,
.custom-input.error.focused,
.custom-input.error:focus,
.custom-input.error:focus-visible {
  border-color: #E43C3C !important;
  background-color: rgba(228, 60, 60, 0.12) !important;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #8D92A5;
}

.password-toggle:hover {
  color: #1D1D1D;
}
