$error-border: 1px solid $frost-color-input-error-border;

.frost-password {
  display: block;
  position: relative;
  min-width: 175px;

  &.revealable {
    .frost-text-clear {
      right: 50px;
    }

    .frost-text-input {
      padding-right: 75px;
    }
  }

  &.error {
    .frost-text-input {
      border: $error-border;

      &:hover {
        &:enabled {
          &:read-write {
            &:not(:focus) {
              border: $error-border;
            }
          }
        }
      }
    }
  }
}

.frost-password-reveal {
  display: inline-block;
  position: absolute;
  top: 2px;
  right: 0;
  width: 45px;
  height: 33px;
  border-left: 1px solid $frost-color-lgrey-2;
  color: $frost-color-blue-1;
  font-size: $frost-font-xs;
  line-height: 35px;
  text-align: center;
  cursor: pointer;
  vertical-align: middle;

  &:focus {
    outline: none;
  }
}
