@mixin form-input-base($container) {
  @apply c-text-base c-border c-border-strong c-bg-secondary c-state-interactive c-transition-colors;
  @include withContext(#{$container}--success) {
    @apply c-border-success;

    &:not(:disabled):hover,
    &:not(:disabled):focus {
      @apply c-border-success;
    }
  }

  @include withContext(#{$container}--error) {
    @apply c-border-error;

    &:not(:disabled):hover,
    &:not(:disabled):focus {
      @apply c-border-error;
    }
  }

  box-sizing: border-box;

  width: 100%;
  height: 44px;
  padding: 10px 12px;

  font-family: font-family(base);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;

  border-radius: 4px;

  &:not(:disabled):not(:read-only):hover {
    @apply c-text-base;
  }

  &:not(:disabled):not(:read-only):focus {
    @apply c-border-accent;

    outline: none;
    box-shadow: inset 0 0 0 1px theme("semanticBorderColor.accent");
  }

  &:not(select):read-only:focus {
    border-width: 1px;

    outline: none;

    box-shadow: elevation(base);
  }

  &:disabled,
  &:not(select):read-only {
    @apply c-border-base c-text-subdued c-bg-neutral;
  }

  &:disabled {
    pointer-events: none;
  }
}
